Skip to content

Commit

Permalink
Fix outline color in simple marker dxf export
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 5, 2014
1 parent 041acd6 commit 2a80881
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions src/core/symbology-ng/qgsfillsymbollayerv2.cpp
Expand Up @@ -339,24 +339,12 @@ double QgsSimpleFillSymbolLayerV2::dxfWidth( const QgsDxfExport& e, const QgsSym

QColor QgsSimpleFillSymbolLayerV2::dxfColor( const QgsSymbolV2RenderContext& context ) const
{
if ( mBrushStyle == Qt::NoBrush )
{
QgsExpression* colorBorderExpression = expression( "color_border" );
if ( colorBorderExpression )
{
return QgsSymbolLayerV2Utils::decodeColor( colorBorderExpression->evaluate( const_cast<QgsFeature*>( context.feature() ) ).toString() );
}
return mBorderColor;
}
else
QgsExpression* colorBorderExpression = expression( "color_border" );
if ( colorBorderExpression )
{
QgsExpression* colorExpression = expression( "color" );
if ( colorExpression )
{
return QgsSymbolLayerV2Utils::decodeColor( colorExpression->evaluate( const_cast<QgsFeature*>( context.feature() ) ).toString() );
}
return mColor;
return QgsSymbolLayerV2Utils::decodeColor( colorBorderExpression->evaluate( const_cast<QgsFeature*>( context.feature() ) ).toString() );
}
return mBorderColor;
}

Qt::PenStyle QgsSimpleFillSymbolLayerV2::dxfPenStyle() const
Expand Down

0 comments on commit 2a80881

Please sign in to comment.