Skip to content
Permalink
Browse files
fixed bug in gdaltools clipper
git-svn-id: http://svn.osgeo.org/qgis/trunk@15556 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Mar 22, 2011
1 parent 556290d commit 351703b2a20ad6726b2fd0548de4c21b66c16b86
Showing with 4 additions and 3 deletions.
  1. +4 −3 python/plugins/GdalTools/tools/doClipper.py
@@ -59,9 +59,10 @@ def fillInputFiles(self):
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():

0 comments on commit 351703b

Please sign in to comment.