mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fixed bug in gdaltools clipper
git-svn-id: http://svn.osgeo.org/qgis/trunk@15556 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
556290d18c
commit
351703b2a2
@ -59,9 +59,10 @@ class GdalToolsDialog(QWidget, Ui_Widget, BasePluginWidget):
|
||||
for i in range(self.canvas.layerCount()-1, -1, -1):
|
||||
layer = self.canvas.layer(i)
|
||||
# only raster layers, but not WMS ones
|
||||
if layer.type() == layer.RasterLayer:
|
||||
if layer.usesProvider() and layer.providerKey() != 'gdal':
|
||||
continue
|
||||
if layer.type() != layer.RasterLayer:
|
||||
continue
|
||||
if layer.usesProvider() and layer.providerKey() != 'gdal':
|
||||
continue
|
||||
|
||||
# do not use the output file as input
|
||||
if layer.source() == self.outputFileEdit.text():
|
||||
|
Loading…
x
Reference in New Issue
Block a user