Set ellipse renderer outline as float. Fix for ticket #4171

This commit is contained in:
marco 2011-08-14 21:23:44 +02:00
parent b3996c368b
commit c6a18002b7

View File

@ -101,7 +101,7 @@ void QgsEllipseSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV2Rend
if ( mOutlineWidthField.first != -1 )
{
double width = context.outputLineWidth( f->attributeMap()[mOutlineWidthField.first].toDouble() );
mPen.setWidth( width );
mPen.setWidthF( width );
}
if ( mFillColorField.first != -1 )
{
@ -160,7 +160,7 @@ void QgsEllipseSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context )
preparePath( mSymbolName, context );
}
mPen.setColor( mOutlineColor );
mPen.setWidth( context.outputLineWidth( mOutlineWidth ) );
mPen.setWidthF( context.outputLineWidth( mOutlineWidth ) );
mBrush.setColor( mFillColor );
}