Skip to content

Commit

Permalink
get rid of multiple inheritance, fix missed import
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jan 21, 2016
1 parent fe2bb2f commit cf02a71
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/algs/gdal/ClipByMask.py
Expand Up @@ -27,8 +27,6 @@

from osgeo import gdal

from processing.algs.gdal.GdalAlgorithm import GdalAlgorithm

from processing.core.parameters import ParameterRaster
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterBoolean
Expand All @@ -41,8 +39,10 @@
from processing.algs.gdal.OgrAlgorithm import OgrAlgorithm
from processing.algs.gdal.GdalUtils import GdalUtils

from processing.tools import dataobjects


class ClipByMask(GdalAlgorithm, OgrAlgorithm):
class ClipByMask(OgrAlgorithm):

INPUT = 'INPUT'
OUTPUT = 'OUTPUT'
Expand Down Expand Up @@ -149,7 +149,7 @@ def getConsoleCommands(self):

arguments.append('-cutline')
arguments.append(ogrMask)
if maskLayer.subsetString() != '':
if maskLayer and maskLayer.subsetString() != '':
arguments.append('-cwhere')
arguments.append(maskLayer.subsetString())

Expand Down

0 comments on commit cf02a71

Please sign in to comment.