@@ -889,9 +889,9 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
889889 if ( mName == " circle" )
890890 {
891891 if ( mBrush .style () != Qt::NoBrush )
892- e.writeFilledCircle ( layerName, bc, QgsPoint ( shift. x (), shift. y () ) , halfSize );
892+ e.writeFilledCircle ( layerName, bc, shift, halfSize );
893893 if ( mPen .style () != Qt::NoPen )
894- e.writeCircle ( layerName, pc, QgsPoint ( shift. x (), shift. y () ) , halfSize, " CONTINUOUS" , outlineWidth );
894+ e.writeCircle ( layerName, pc, shift, halfSize, " CONTINUOUS" , outlineWidth );
895895 }
896896 else if ( mName == " square" || mName == " rectangle" )
897897 {
@@ -903,7 +903,7 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
903903 QPointF pt4 = t.map ( QPointF ( halfSize, halfSize ) );
904904
905905 if ( mBrush .style () != Qt::NoBrush )
906- e.writeSolid ( layerName, bc, QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ), QgsPoint ( pt3. x (), pt3. y () ), QgsPoint ( pt4. x (), pt4. y () ) );
906+ e.writeSolid ( layerName, bc, pt1, pt2, pt3, pt4 );
907907
908908 if ( mPen .style () != Qt::NoPen )
909909 {
@@ -921,7 +921,7 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
921921 QPointF pt4 = t.map ( QPointF ( halfSize, 0 ) );
922922
923923 if ( mBrush .style () != Qt::NoBrush )
924- e.writeSolid ( layerName, bc, QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ), QgsPoint ( pt3. x (), pt3. y () ), QgsPoint ( pt4. x (), pt4. y () ) );
924+ e.writeSolid ( layerName, bc, pt1, pt2, pt3, pt4 );
925925
926926 if ( mPen .style () != Qt::NoPen )
927927 {
@@ -938,7 +938,7 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
938938 QPointF pt3 = t.map ( QPointF ( 0 , halfSize ) );
939939
940940 if ( mBrush .style () != Qt::NoBrush )
941- e.writeSolid ( layerName, bc, QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ), QgsPoint ( pt3. x () , pt3. y () ), QgsPoint ( pt3. x (), pt3. y () ) );
941+ e.writeSolid ( layerName, bc, pt1, pt2, pt3, pt3 );
942942
943943 if ( mPen .style () != Qt::NoPen )
944944 {
@@ -959,7 +959,7 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
959959 QPointF pt2 = t.map ( QPointF ( 0 , -halfSize ) );
960960
961961 if ( mPen .style () != Qt::NoPen )
962- e.writeLine ( QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
962+ e.writeLine ( pt1, pt2, layerName, " CONTINUOUS" , pc, outlineWidth );
963963 }
964964 else if ( mName == " cross" )
965965 {
@@ -970,8 +970,8 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
970970
971971 if ( mPen .style () != Qt::NoPen )
972972 {
973- e.writeLine ( QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
974- e.writeLine ( QgsPoint ( pt3. x (), pt3. y () ), QgsPoint ( pt4. x (), pt4. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
973+ e.writeLine ( pt1, pt2, layerName, " CONTINUOUS" , pc, outlineWidth );
974+ e.writeLine ( pt3, pt4, layerName, " CONTINUOUS" , pc, outlineWidth );
975975 }
976976 }
977977 else if ( mName == " x" || mName == " cross2" )
@@ -983,8 +983,8 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
983983
984984 if ( mPen .style () != Qt::NoPen )
985985 {
986- e.writeLine ( QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
987- e.writeLine ( QgsPoint ( pt3. x (), pt3. y () ), QgsPoint ( pt4. x (), pt4. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
986+ e.writeLine ( pt1, pt2, layerName, " CONTINUOUS" , pc, outlineWidth );
987+ e.writeLine ( pt3, pt4, layerName, " CONTINUOUS" , pc, outlineWidth );
988988 }
989989 }
990990 else if ( mName == " arrowhead" )
@@ -995,8 +995,8 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
995995
996996 if ( mPen .style () != Qt::NoPen )
997997 {
998- e.writeLine ( QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
999- e.writeLine ( QgsPoint ( pt3. x (), pt3. y () ), QgsPoint ( pt2. x (), pt2. y () ) , layerName, " CONTINUOUS" , pc, outlineWidth );
998+ e.writeLine ( pt1, pt2, layerName, " CONTINUOUS" , pc, outlineWidth );
999+ e.writeLine ( pt3, pt2, layerName, " CONTINUOUS" , pc, outlineWidth );
10001000 }
10011001 }
10021002 else if ( mName == " filled_arrowhead" )
@@ -1007,7 +1007,7 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
10071007
10081008 if ( mBrush .style () != Qt::NoBrush )
10091009 {
1010- e.writeSolid ( layerName, bc, QgsPoint ( pt1. x (), pt1. y () ), QgsPoint ( pt2. x (), pt2. y () ), QgsPoint ( pt3. x () , pt3. y () ), QgsPoint ( pt3. x (), pt3. y () ) );
1010+ e.writeSolid ( layerName, bc, pt1, pt2, pt3, pt3 );
10111011 }
10121012 }
10131013 else
0 commit comments