Skip to content

Commit

Permalink
Fix crash when trying to edit color ramp with black start/end colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 5, 2014
1 parent f4ba537 commit 4baaad6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/symbology-ng/qgsvectorgradientcolorrampv2dialog.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 4baaad6

Please sign in to comment.