Skip to content
Permalink
Browse files
reset upper border of the cumulative cut to the maximum value (fix #4…
  • Loading branch information
alexbruy authored and github-actions committed Jul 21, 2021
1 parent b5d6610 commit 197d78e3c1b94a026b02c67c1083fbbb36a5a88b
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/raster/qgsrasterminmaxwidget.cpp
@@ -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;
@@ -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 );

0 comments on commit 197d78e

Please sign in to comment.