mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
use correct expand option when combobox items translated
git-svn-id: http://svn.osgeo.org/qgis/trunk@15078 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
4762be0ac4
commit
124ab99fd2
@ -15,6 +15,7 @@ class GdalToolsDialog(QWidget, Ui_Widget, BaseBatchWidget):
|
||||
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 @@ class GdalToolsDialog(QWidget, Ui_Widget, BaseBatchWidget):
|
||||
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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user