Skip to content
Permalink
Browse files

Fix Blocker Issue #7871 : SVG Marker fill and outlin colors are restored

when changing widget or reopening style window
  • Loading branch information
tqhien authored and mhugent committed Aug 28, 2013
1 parent 26efcbc commit 53fd7f32863255f08b8ac51f5684b2bf3d0330ac
Showing with 20 additions and 2 deletions.
  1. +20 −2 src/gui/symbology-ng/qgssymbollayerv2widget.cpp
@@ -905,9 +905,27 @@ void QgsSvgMarkerSymbolLayerV2Widget::setGuiForSvg( const QgsSvgMarkerSymbolLaye
mBorderWidthSpinBox->setEnabled( hasOutlineWidthParam );

if ( hasFillParam )
mChangeColorButton->setColor( defaultFill );
{
if ( layer->fillColor().isValid() )
{
mChangeColorButton->setColor( layer->fillColor() );
}
else
{
mChangeColorButton->setColor( defaultFill );
}
}
if ( hasOutlineParam )
mChangeBorderColorButton->setColor( defaultOutline );
{
if ( layer->outlineColor().isValid() )
{
mChangeBorderColorButton->setColor( layer->outlineColor() );
}
else
{
mChangeBorderColorButton->setColor( defaultOutline );
}
}

mFileLineEdit->blockSignals( true );
mFileLineEdit->setText( layer->path() );

0 comments on commit 53fd7f3

Please sign in to comment.
You can’t perform that action at this time.