Skip to content

Commit

Permalink
Minor change for raster calculator dialog to get the gdal layers
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15434 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 11, 2011
1 parent 47a69a9 commit c034d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsrastercalcdialog.cpp
Expand Up @@ -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
{
Expand Down

0 comments on commit c034d19

Please sign in to comment.