Skip to content

Commit c034d19

Browse files
author
mhugent
committed
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
1 parent 47a69a9 commit c034d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgsrastercalcdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void QgsRasterCalcDialog::insertAvailableRasterBands()
111111
for ( ; layerIt != layers.constEnd(); ++layerIt )
112112
{
113113
QgsRasterLayer* rlayer = dynamic_cast<QgsRasterLayer*>( layerIt.value() );
114-
if ( rlayer && !rlayer->usesProvider() )
114+
if ( rlayer && rlayer->dataProvider() && rlayer->dataProvider()->name() == "gdal" )
115115
{
116116
if ( firstLayer ) //set bounding box / resolution of output to the values of the first possible input layer
117117
{

0 commit comments

Comments
 (0)