Skip to content

Commit 5bd7083

Browse files
committed
Implement diamond simple marker
1 parent 222946b commit 5bd7083

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/core/symbology-ng/qgsmarkersymbollayerv2.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,24 @@ void QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
740740
e.writeGroup( 23, size );
741741
e.writeGroup( 33, 0.0 );
742742
}
743+
else if ( mName == "diamond" )
744+
{
745+
e.writeGroup( 0, "SOLID" );
746+
e.writeGroup( 8, "0" );
747+
e.writeGroup( 62, colorIndex );
748+
e.writeGroup( 10, 0.0 );
749+
e.writeGroup( 20, halfSize );
750+
e.writeGroup( 30, 0.0 );
751+
e.writeGroup( 11, halfSize );
752+
e.writeGroup( 21, 0.0 );
753+
e.writeGroup( 31, 0.0 );
754+
e.writeGroup( 12, halfSize );
755+
e.writeGroup( 22, size );
756+
e.writeGroup( 32, 0.0 );
757+
e.writeGroup( 13, size );
758+
e.writeGroup( 23, halfSize );
759+
e.writeGroup( 33, 0.0 );
760+
}
743761
}
744762

745763
//////////

0 commit comments

Comments
 (0)