Skip to content

Commit 45d6f7b

Browse files
committed
Dxf: another small improvement in symbology export
1 parent 4dcaa17 commit 45d6f7b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/core/symbology-ng/qgsmarkersymbollayerv2.cpp

+5-2
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,11 @@ bool QgsSimpleMarkerSymbolLayerV2::writeDxf( QgsDxfExport& e, double mmMapUnitSc
764764
}
765765
double halfSize = size / 2.0;
766766

767-
768-
QColor c = mBrush.color();
767+
QColor c = mPen.color();
768+
if ( mPen.style() == Qt::NoPen )
769+
{
770+
c = mBrush.color();
771+
}
769772
QgsExpression* colorExpression = expression( "color" );
770773
if ( colorExpression )
771774
{

0 commit comments

Comments
 (0)