Skip to content

Commit 7e58628

Browse files
author
ersts
committed
-small speed improvement for intial load of single band gray images
git-svn-id: http://svn.osgeo.org/qgis/trunk@7954 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5324435 commit 7e58628

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/raster/qgsrasterlayer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@ bool QgsRasterLayer::readFile( QString const & fileName )
634634
}
635635
else //GRAY_OR_UNDEFINED
636636
{
637-
getRasterBandStats(1);
637+
//Disabled automatically generating stats to improve initial load speed.
638+
//getRasterBandStats(1);
638639
mRedBandName = tr(QSTRING_NOT_SET); //sensible default
639640
mGreenBandName = tr(QSTRING_NOT_SET); //sensible default
640641
mBlueBandName = tr(QSTRING_NOT_SET); //sensible default

0 commit comments

Comments
 (0)