Skip to content
Permalink
Browse files

Fix issue #28854 Export project to dxf symbol size

  • Loading branch information
github-actions authored and nyalldawson committed Feb 6, 2020
1 parent 7f00a40 commit 7f23012418b7a001d278cd13fb897ac158f455c0
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/core/symbology/qgsmarkersymbollayer.cpp
@@ -1233,8 +1233,6 @@ void QgsSimpleMarkerSymbolLayer::drawMarker( QPainter *p, QgsSymbolRenderContext

bool QgsSimpleMarkerSymbolLayer::writeDxf( QgsDxfExport &e, double mmMapUnitScaleFactor, const QString &layerName, QgsSymbolRenderContext &context, QPointF shift ) const
{
Q_UNUSED( mmMapUnitScaleFactor )

//data defined size?
double size = mSize;

@@ -1260,6 +1258,12 @@ bool QgsSimpleMarkerSymbolLayer::writeDxf( QgsDxfExport &e, double mmMapUnitScal

size *= e.mapUnitScaleFactor( e.symbologyScale(), mSizeUnit, e.mapUnits(), context.renderContext().mapToPixel().mapUnitsPerPixel() );
}

if ( mSizeUnit == QgsUnitTypes::RenderMillimeters )
{
size *= mmMapUnitScaleFactor;
}

if ( mSizeUnit == QgsUnitTypes::RenderMapUnits )
{
e.clipValueToMapUnitScale( size, mSizeMapUnitScale, context.renderContext().scaleFactor() );

0 comments on commit 7f23012

Please sign in to comment.
You can’t perform that action at this time.