Skip to content
Permalink
Browse files

Categorized renderer: disable edit color ramp button for random

  • Loading branch information
m-kuhn committed Jun 11, 2016
1 parent c6cba65 commit 7692107e623f576c04fff317ab881edd1c59afc0
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/symbology-ng/qgscategorizedsymbolrendererv2widget.cpp
@@ -439,6 +439,7 @@ QgsCategorizedSymbolRendererV2Widget::QgsCategorizedSymbolRendererV2Widget( QgsV
if ( randomIndex != -1 )
{
cboCategorizedColorRamp->setCurrentIndex( randomIndex );
mButtonEditRamp->setEnabled( false );
}

// set project default color ramp
@@ -802,6 +803,11 @@ void QgsCategorizedSymbolRendererV2Widget::addCategories()

void QgsCategorizedSymbolRendererV2Widget::applyColorRamp()
{
if ( cboCategorizedColorRamp->currentText() == tr( "Random colors" ) )
mButtonEditRamp->setEnabled( false );
else
mButtonEditRamp->setEnabled( true );

QgsVectorColorRampV2* ramp = getColorRamp();
if ( ramp )
{

0 comments on commit 7692107

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