Skip to content

Commit

Permalink
reset upper border of the cumulative cut to the maximum value (fix #4…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy authored and github-actions[bot] committed Jul 21, 2021
1 parent b5d6610 commit 197d78e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/raster/qgsrasterminmaxwidget.cpp
Expand Up @@ -24,6 +24,7 @@
#include "qgsrasterrenderer.h"
#include "qgsrasterdataprovider.h"
#include "qgsrasterminmaxorigin.h"
#include "qgsdoublespinbox.h"

const int IDX_WHOLE_RASTER = 0;
const int IDX_CURRENT_CANVAS = 1;
Expand All @@ -37,6 +38,10 @@ QgsRasterMinMaxWidget::QgsRasterMinMaxWidget( QgsRasterLayer *layer, QWidget *pa
{
QgsDebugMsgLevel( QStringLiteral( "Entered." ), 4 );
setupUi( this );

// use maximum value as a clear value for the upper border of the cumulative cut
mCumulativeCutUpperDoubleSpinBox->setClearValueMode( QgsDoubleSpinBox::MaximumValue );

connect( mUserDefinedRadioButton, &QRadioButton::toggled, this, &QgsRasterMinMaxWidget::mUserDefinedRadioButton_toggled );
connect( mMinMaxRadioButton, &QRadioButton::toggled, this, &QgsRasterMinMaxWidget::mMinMaxRadioButton_toggled );
connect( mStdDevRadioButton, &QRadioButton::toggled, this, &QgsRasterMinMaxWidget::mStdDevRadioButton_toggled );
Expand Down

0 comments on commit 197d78e

Please sign in to comment.