[QGIS Commit] r14618 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Nov 13 15:15:46 EST 2010


Author: mhugent
Date: 2010-11-13 12:15:46 -0800 (Sat, 13 Nov 2010)
New Revision: 14618

Modified:
   trunk/qgis/src/app/qgsrasterlayerproperties.cpp
Log:
Patch from Volker Froehlich. Fixes ticket #2252

Modified: trunk/qgis/src/app/qgsrasterlayerproperties.cpp
===================================================================
--- trunk/qgis/src/app/qgsrasterlayerproperties.cpp	2010-11-13 20:10:55 UTC (rev 14617)
+++ trunk/qgis/src/app/qgsrasterlayerproperties.cpp	2010-11-13 20:15:46 UTC (rev 14618)
@@ -113,6 +113,15 @@
   leMaximumScale->setValidator( new QDoubleValidator( 0, std::numeric_limits<float>::max(), 1000, this ) );
   leNoDataValue->setValidator( new QDoubleValidator( -std::numeric_limits<float>::max(), std::numeric_limits<float>::max(), 1000, this ) );
 
+  leRedMin->setValidator( new QDoubleValidator( this ) );
+  leRedMax->setValidator( new QDoubleValidator( this ) );
+  leBlueMin->setValidator( new QDoubleValidator( this ) );
+  leBlueMax->setValidator( new QDoubleValidator( this ) );
+  leGreenMin->setValidator( new QDoubleValidator( this ) );
+  leGreenMax->setValidator( new QDoubleValidator( this ) );
+  leGrayMin->setValidator( new QDoubleValidator( this ) );
+  leGrayMax->setValidator( new QDoubleValidator( this ) );
+
   // build GUI components
   cboxColorMap->addItem( tr( "Grayscale" ) );
   cboxColorMap->addItem( tr( "Pseudocolor" ) );



More information about the QGIS-commit mailing list