[QGIS Commit] r15434 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Mar 11 11:05:40 EST 2011
Author: mhugent
Date: 2011-03-11 08:05:40 -0800 (Fri, 11 Mar 2011)
New Revision: 15434
Modified:
trunk/qgis/src/app/qgsrastercalcdialog.cpp
Log:
Minor change for raster calculator dialog to get the gdal layers
Modified: trunk/qgis/src/app/qgsrastercalcdialog.cpp
===================================================================
--- trunk/qgis/src/app/qgsrastercalcdialog.cpp 2011-03-11 15:54:45 UTC (rev 15433)
+++ trunk/qgis/src/app/qgsrastercalcdialog.cpp 2011-03-11 16:05:40 UTC (rev 15434)
@@ -111,7 +111,7 @@
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
{
More information about the QGIS-commit
mailing list