Skip to content
Permalink
Browse files

use correct expand option when combobox items translated

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15078 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
alexbruy
alexbruy committed Jan 25, 2011
1 parent 302c228 commit e0ff3a55c064ef1776455f53b9f390fa18bd8c44
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/GdalTools/tools/doTranslate.py
@@ -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")
@@ -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())

0 comments on commit e0ff3a5

Please sign in to comment.
You can’t perform that action at this time.