Skip to content
Permalink
Browse files
fixed bug in gdaltools clipper
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15556 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Mar 22, 2011
1 parent 65b7e79 commit 5c794f6df1d940c21b9d82da2c4d99164ffb100b
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 5c794f6

Please sign in to comment.