Skip to content

Commit

Permalink
Fix Blocker Issue #7871 : SVG Marker fill and outlin colors are restored
Browse files Browse the repository at this point in the history
when changing widget or reopening style window
  • Loading branch information
tqhien authored and mhugent committed Aug 30, 2013
1 parent 26efcbc commit 53fd7f3
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/gui/symbology-ng/qgssymbollayerv2widget.cpp
Expand Up @@ -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() );
Expand Down

0 comments on commit 53fd7f3

Please sign in to comment.