Skip to content
Permalink
Browse files

Cosmetic coverity fixes

  • Loading branch information
nyalldawson committed Aug 16, 2015
1 parent 42d5b9b commit 6703fd32a5bb0042957b24a8a7f1ea631e9efb31
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/symbology-ng/qgscolorrampcombobox.cpp
@@ -154,7 +154,7 @@ void QgsColorRampComboBox::editSourceRamp()
{
QgsVectorRandomColorRampV2* randRamp = static_cast<QgsVectorRandomColorRampV2*>( newRamp.data() );
QgsVectorRandomColorRampV2Dialog dlg( randRamp, this );
if ( dlg.exec() && randRamp )
if ( dlg.exec() )
{
setSourceColorRamp( randRamp );
emit sourceRampEdited();
@@ -164,7 +164,7 @@ void QgsColorRampComboBox::editSourceRamp()
{
QgsVectorColorBrewerColorRampV2* brewerRamp = static_cast<QgsVectorColorBrewerColorRampV2*>( newRamp.data() );
QgsVectorColorBrewerColorRampV2Dialog dlg( brewerRamp, this );
if ( dlg.exec() && brewerRamp )
if ( dlg.exec() )
{
setSourceColorRamp( brewerRamp );
emit sourceRampEdited();

0 comments on commit 6703fd3

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