Skip to content

Commit 351703b

Browse files
author
brushtyler
committed
fixed bug in gdaltools clipper
git-svn-id: http://svn.osgeo.org/qgis/trunk@15556 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 556290d commit 351703b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python/plugins/GdalTools/tools/doClipper.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ def fillInputFiles(self):
5959
for i in range(self.canvas.layerCount()-1, -1, -1):
6060
layer = self.canvas.layer(i)
6161
# only raster layers, but not WMS ones
62-
if layer.type() == layer.RasterLayer:
63-
if layer.usesProvider() and layer.providerKey() != 'gdal':
64-
continue
62+
if layer.type() != layer.RasterLayer:
63+
continue
64+
if layer.usesProvider() and layer.providerKey() != 'gdal':
65+
continue
6566

6667
# do not use the output file as input
6768
if layer.source() == self.outputFileEdit.text():

0 commit comments

Comments
 (0)