mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Only calculatestats for all layers if grayscale or undefined layer type.
git-svn-id: http://svn.osgeo.org/qgis/trunk@551 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
12bb442333
commit
8d1703f03e
@ -127,6 +127,7 @@ QgsRasterLayer::QgsRasterLayer(QString path, QString baseName)
|
||||
}
|
||||
else //GRAY_OR_UNDEFINED
|
||||
{
|
||||
calculateStats("");
|
||||
redBandNameQString="Not Set"; //sensible default
|
||||
greenBandNameQString="Not Set"; //sensible default
|
||||
blueBandNameQString="Not Set"; //sensible default
|
||||
@ -144,7 +145,7 @@ QgsRasterLayer::QgsRasterLayer(QString path, QString baseName)
|
||||
stdDevsToPlotDouble = 0; // sensible default
|
||||
transparencyLevelInt = 255; //sensible default 0 is transparent
|
||||
showDebugOverlayFlag=false; //sensible default
|
||||
calculateStats("");
|
||||
|
||||
}
|
||||
|
||||
QgsRasterLayer::~QgsRasterLayer()
|
||||
|
Loading…
x
Reference in New Issue
Block a user