Skip to content

Commit

Permalink
greetings from Maxim and Alex at the QGIS Hackfest in Lisbon. Just fi…
Browse files Browse the repository at this point in the history
…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 cbe4ee9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/core/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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;
Expand Down

0 comments on commit cbe4ee9

Please sign in to comment.