Fixed scaling of simple line offset (#3479)

git-svn-id: http://svn.osgeo.org/qgis/trunk@15603 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2011-03-25 21:31:33 +00:00
parent e517855cb9
commit ccee31f450

View File

@ -116,7 +116,8 @@ void QgsSimpleLineSymbolLayerV2::renderPolyline( const QPolygonF& points, QgsSym
}
else
{
p->drawPolyline( ::offsetLine( points, mOffset ) );
double scaledOffset = context.outputLineWidth( mOffset );
p->drawPolyline( ::offsetLine( points, scaledOffset ) );
}
}