Skip to content
Permalink
Browse files

Fix crash when trying to edit color ramp with black start/end colors

  • Loading branch information
nyalldawson committed Sep 5, 2014
1 parent f4ba537 commit 4baaad68508c6e2c74ce9c73c9a2970a69a7000c
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/symbology-ng/qgsvectorgradientcolorrampv2dialog.cpp
@@ -218,8 +218,12 @@ void QgsVectorGradientColorRampV2Dialog::updatePreview()
QSize size( 300, 40 );
lblPreview->setPixmap( QgsSymbolLayerV2Utils::colorRampPreviewPixmap( mRamp, size ) );

btnColor1->blockSignals( true );
btnColor1->setColor( mRamp->color1() );
btnColor1->blockSignals( false );
btnColor2->blockSignals( true );
btnColor2->setColor( mRamp->color2() );
btnColor2->blockSignals( false );
}

void QgsVectorGradientColorRampV2Dialog::setColor1( const QColor& color )

0 comments on commit 4baaad6

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