Skip to content

Commit

Permalink
fix GDalTools overviews when clean and no levels are defined (#10538)
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennesky committed Jun 10, 2014
1 parent 1acf45f commit 9ec1d46
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/plugins/GdalTools/tools/doOverview.py
Expand Up @@ -139,9 +139,7 @@ def getArguments( self ):

arguments.append(self.getInputFileName())

if len(self.mPyramidOptionsWidget.overviewList()) == 0:
arguments.append(self.tr("[select levels]"))
else:
if len(self.mPyramidOptionsWidget.overviewList()) > 0:
for level in self.mPyramidOptionsWidget.overviewList():
arguments.append(str(level))

Expand Down

0 comments on commit 9ec1d46

Please sign in to comment.