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@15434 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 11, 2011
1 parent 47a69a9 commit c034d19c73cdf48ff2c0b1d0b93f792d9801df10
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 c034d19

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