Skip to content
Permalink
Browse files

Disable simple marker fill color for outline only shapes

  • Loading branch information
nyalldawson committed Jun 27, 2016
1 parent 9f0ae9b commit 91c2d769a1919423d0a4e3749f3c579e76e8bc80
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/symbology-ng/qgssymbollayerv2widget.cpp
@@ -494,6 +494,7 @@ void QgsSimpleMarkerSymbolLayerV2Widget::setSymbolLayer( QgsSymbolLayerV2* layer
btnChangeColorBorder->blockSignals( false );
btnChangeColorFill->blockSignals( true );
btnChangeColorFill->setColor( mLayer->fillColor() );
btnChangeColorFill->setEnabled( QgsSimpleMarkerSymbolLayerBase::shapeIsFilled( mLayer->shape() ) );
btnChangeColorFill->blockSignals( false );
spinSize->blockSignals( true );
spinSize->setValue( mLayer->size() );
@@ -568,6 +569,7 @@ QgsSymbolLayerV2* QgsSimpleMarkerSymbolLayerV2Widget::symbolLayer()
void QgsSimpleMarkerSymbolLayerV2Widget::setName()
{
mLayer->setShape( static_cast< QgsSimpleMarkerSymbolLayerBase::Shape>( lstNames->currentItem()->data( Qt::UserRole ).toInt() ) );
btnChangeColorFill->setEnabled( QgsSimpleMarkerSymbolLayerBase::shapeIsFilled( mLayer->shape() ) );
emit changed();
}

0 comments on commit 91c2d76

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