Skip to content
Permalink
Browse files

[bugfix] SingleBandPseudoColor crashes when min or max is NaN

.. in styling dock

Fixes #16794
  • Loading branch information
elpaso committed Sep 26, 2017
1 parent ce11ebb commit 50b663ead4acaf945799c3989923353a9848b091
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/raster/qgssinglebandpseudocolorrendererwidget.cpp
@@ -363,6 +363,11 @@ void QgsSingleBandPseudoColorRendererWidget::on_mClassifyButton_clicked()
double min = lineEditValue( mMinLineEdit );
double max = lineEditValue( mMaxLineEdit );

if ( qIsNaN( min ) || qIsNaN( max ) )
{
return;
}

QScopedPointer< QgsVectorColorRampV2 > colorRamp( mColorRampComboBox->currentColorRamp() );

if ( mClassificationModeComboBox->itemData( mClassificationModeComboBox->currentIndex() ).toInt() == Continuous )

0 comments on commit 50b663e

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