Skip to content

Commit 2a80881

Browse files
committedJun 5, 2014
Fix outline color in simple marker dxf export
1 parent 041acd6 commit 2a80881

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed
 

‎src/core/symbology-ng/qgsfillsymbollayerv2.cpp

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -339,24 +339,12 @@ double QgsSimpleFillSymbolLayerV2::dxfWidth( const QgsDxfExport& e, const QgsSym
339339

340340
QColor QgsSimpleFillSymbolLayerV2::dxfColor( const QgsSymbolV2RenderContext& context ) const
341341
{
342-
if ( mBrushStyle == Qt::NoBrush )
343-
{
344-
QgsExpression* colorBorderExpression = expression( "color_border" );
345-
if ( colorBorderExpression )
346-
{
347-
return QgsSymbolLayerV2Utils::decodeColor( colorBorderExpression->evaluate( const_cast<QgsFeature*>( context.feature() ) ).toString() );
348-
}
349-
return mBorderColor;
350-
}
351-
else
342+
QgsExpression* colorBorderExpression = expression( "color_border" );
343+
if ( colorBorderExpression )
352344
{
353-
QgsExpression* colorExpression = expression( "color" );
354-
if ( colorExpression )
355-
{
356-
return QgsSymbolLayerV2Utils::decodeColor( colorExpression->evaluate( const_cast<QgsFeature*>( context.feature() ) ).toString() );
357-
}
358-
return mColor;
345+
return QgsSymbolLayerV2Utils::decodeColor( colorBorderExpression->evaluate( const_cast<QgsFeature*>( context.feature() ) ).toString() );
359346
}
347+
return mBorderColor;
360348
}
361349

362350
Qt::PenStyle QgsSimpleFillSymbolLayerV2::dxfPenStyle() const

0 commit comments

Comments
 (0)
Please sign in to comment.