File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -905,9 +905,27 @@ void QgsSvgMarkerSymbolLayerV2Widget::setGuiForSvg( const QgsSvgMarkerSymbolLaye
905
905
mBorderWidthSpinBox ->setEnabled ( hasOutlineWidthParam );
906
906
907
907
if ( hasFillParam )
908
- mChangeColorButton ->setColor ( defaultFill );
908
+ {
909
+ if ( layer->fillColor ().isValid () )
910
+ {
911
+ mChangeColorButton ->setColor ( layer->fillColor () );
912
+ }
913
+ else
914
+ {
915
+ mChangeColorButton ->setColor ( defaultFill );
916
+ }
917
+ }
909
918
if ( hasOutlineParam )
910
- mChangeBorderColorButton ->setColor ( defaultOutline );
919
+ {
920
+ if ( layer->outlineColor ().isValid () )
921
+ {
922
+ mChangeBorderColorButton ->setColor ( layer->outlineColor () );
923
+ }
924
+ else
925
+ {
926
+ mChangeBorderColorButton ->setColor ( defaultOutline );
927
+ }
928
+ }
911
929
912
930
mFileLineEdit ->blockSignals ( true );
913
931
mFileLineEdit ->setText ( layer->path () );
You can’t perform that action at this time.
0 commit comments