Skip to content

Commit

Permalink
Patch from Volker Froehlich. Fixes ticket #2252
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14618 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 13, 2010
1 parent 10e43de commit 6c48ce4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/qgsrasterlayerproperties.cpp
Original file line number Diff line number Diff line change
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 6c48ce4

Please sign in to comment.