Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Patch from Volker Froehlich. Fixes ticket #2252
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14618 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 13, 2010
1 parent 1dcd7c4 commit 237ac8f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -113,6 +113,15 @@ QgsRasterLayerProperties::QgsRasterLayerProperties( QgsMapLayer* lyr, QgsMapCanv
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" ) );
Expand Down

0 comments on commit 237ac8f

Please sign in to comment.