Skip to content

Commit

Permalink
use correct expand option when combobox items translated
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@15078 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
alexbruy committed Jan 25, 2011
1 parent 4762be0 commit 124ab99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/GdalTools/tools/doTranslate.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def __init__(self, iface):
QWidget.__init__(self)
self.iface = iface
self.canvas = self.iface.mapCanvas()
self.expand_method = ( 'gray', 'rgb', 'rgba' )

self.setupUi(self)
BaseBatchWidget.__init__(self, self.iface, "gdal_translate")
Expand Down Expand Up @@ -188,7 +189,7 @@ def getArguments(self):
arguments << self.outsizeSpin.text()
if self.expandCheck.isChecked():
arguments << "-expand"
arguments << self.expandCombo.currentText().toLower()
arguments << self.expand_method[self.expandCombo.currentIndex()]
if self.nodataCheck.isChecked():
arguments << "-a_nodata"
arguments << str(self.nodataSpin.value())
Expand Down

0 comments on commit 124ab99

Please sign in to comment.