Skip to content

Commit

Permalink
-small speed improvement for intial load of single band gray images
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@7954 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ersts committed Jan 14, 2008
1 parent 5324435 commit 7e58628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/raster/qgsrasterlayer.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 7e58628

Please sign in to comment.