Skip to content
Permalink
Browse files

Fix histogram stretch tool so that it works with multiband colour ima…

…ges too

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15431 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Mar 11, 2011
1 parent 88f7248 commit e05c419afbaa32a0bd34423fe710936daefb8b7d
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/app/qgisapp.cpp
@@ -4859,7 +4859,8 @@ void QgisApp::localHistogramStretch()
return;
}
if ( rlayer->drawingStyle() == QgsRasterLayer::SingleBandGray ||
rlayer->drawingStyle() == QgsRasterLayer::MultiBandSingleBandGray
rlayer->drawingStyle() == QgsRasterLayer::MultiBandSingleBandGray ||
rlayer->drawingStyle() == QgsRasterLayer::MultiBandColor
)
{
rlayer->setContrastEnhancementAlgorithm( "StretchToMinimumMaximum" );
@@ -4874,8 +4875,8 @@ void QgisApp::localHistogramStretch()
QMessageBox::information( this,
tr( "No Valid Raster Layer Selected" ),
tr( "To perform a local histogram stretch, you need to have a grayscale "
"(multiband single layer, or singleband grayscale) raster layer "
"selected." ) );
"or multiband (multiband single layer, singleband grayscale or multiband color) "
" raster layer selected." ) );
return;
}
}

0 comments on commit e05c419

Please sign in to comment.
You can’t perform that action at this time.