mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
-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:
parent
cba5acb774
commit
4f4cb18e31
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user