Skip to content
Permalink
Browse files

Minor change for raster calculator dialog to get the gdal layers

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15434 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 11, 2011
1 parent bf6cb2e commit 17e4379420d35f53cdf29d48b3ce9fe8608f0613
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsrastercalcdialog.cpp
@@ -111,7 +111,7 @@ void QgsRasterCalcDialog::insertAvailableRasterBands()
for ( ; layerIt != layers.constEnd(); ++layerIt )
{
QgsRasterLayer* rlayer = dynamic_cast<QgsRasterLayer*>( layerIt.value() );
if ( rlayer && !rlayer->usesProvider() )
if ( rlayer && rlayer->dataProvider() && rlayer->dataProvider()->name() == "gdal" )
{
if ( firstLayer ) //set bounding box / resolution of output to the values of the first possible input layer
{

0 comments on commit 17e4379

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