Skip to content

Commit afe6139

Browse files
author
wonder
committed
Fixed scaling of simple line offset (#3479)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15603 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent adea998 commit afe6139

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/core/symbology-ng/qgslinesymbollayerv2.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ void QgsSimpleLineSymbolLayerV2::renderPolyline( const QPolygonF& points, QgsSym
116116
}
117117
else
118118
{
119-
p->drawPolyline( ::offsetLine( points, mOffset ) );
119+
double scaledOffset = context.outputLineWidth( mOffset );
120+
p->drawPolyline( ::offsetLine( points, scaledOffset ) );
120121
}
121122
}
122123

0 commit comments

Comments
 (0)