Skip to content
Permalink
Browse files
greetings from Maxim and Alex at the QGIS Hackfest in Lisbon. Just fi…
…xed (again)bug #3519

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15705 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
alexbruy committed Apr 15, 2011
1 parent 9bb8b7d commit cbe4ee960e7a3844732ad2f95532dad5a1b77d91
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/core/raster/qgsrasterlayer.cpp
@@ -2460,6 +2460,12 @@ void QgsRasterLayer::setDataProvider( QString const & provider,
mTransparencyBandName = TRSTRING_NOT_SET;
mGrayBandName = TRSTRING_NOT_SET; //sensible default
mDrawingStyle = MultiBandColor; //sensible default

// read standard deviations
if ( mContrastEnhancementAlgorithm == QgsContrastEnhancement::StretchToMinimumMaximum )
{
setStandardDeviations( myQSettings.value( "/Raster/defaultStandardDeviation", 1.0 ).toInt() );
}
}
else //GrayOrUndefined
{
@@ -2469,6 +2475,12 @@ void QgsRasterLayer::setDataProvider( QString const & provider,
mTransparencyBandName = TRSTRING_NOT_SET; //sensible default
mDrawingStyle = SingleBandGray; //sensible default
mGrayBandName = bandName( 1 );

// read standard deviations
if ( mContrastEnhancementAlgorithm == QgsContrastEnhancement::StretchToMinimumMaximum )
{
setStandardDeviations( myQSettings.value( "/Raster/defaultStandardDeviation", 1.0 ).toInt() );
}
}
// Debug
//mDrawingStyle = SingleBandPseudoColor;

0 comments on commit cbe4ee9

Please sign in to comment.