-small speed improvement for intial load of single band gray images

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7954 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
ersts 2008-01-14 05:34:22 +00:00
parent cba5acb774
commit 4f4cb18e31

View File

@ -634,7 +634,8 @@ bool QgsRasterLayer::readFile( QString const & fileName )
}
else //GRAY_OR_UNDEFINED
{
getRasterBandStats(1);
//Disabled automatically generating stats to improve initial load speed.
//getRasterBandStats(1);
mRedBandName = tr(QSTRING_NOT_SET); //sensible default
mGreenBandName = tr(QSTRING_NOT_SET); //sensible default
mBlueBandName = tr(QSTRING_NOT_SET); //sensible default