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/qgis@15078 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
alexbruy committed Jan 25, 2011
1 parent 302c228 commit e0ff3a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/GdalTools/tools/doTranslate.py
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 e0ff3a5

Please sign in to comment.