File tree 2 files changed +3
-3
lines changed
python/plugins/GdalTools/tools
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def finished( self ):
101
101
self .rasterInfoList .clear ()
102
102
arr = str (self .base .process .readAllStandardOutput ()).strip ()
103
103
if platform .system () == "Windows" :
104
- #info = QString.fromLocal8Bit( arr ).trimmed ().split( "\r\n" )
104
+ #info = QString.fromLocal8Bit( arr ).strip ().split( "\r\n" )
105
105
# TODO test
106
106
info = string .split (arr , sep = "\r \n " )
107
107
else :
Original file line number Diff line number Diff line change @@ -90,10 +90,10 @@ def getArguments(self):
90
90
outputFn = self .getOutputFileName ()
91
91
arguments .append ( outputFn )
92
92
if self .valuesCheck .isChecked ():
93
- values = self .valuesEdit .text ().trimmed ()
93
+ values = self .valuesEdit .text ().split ()
94
94
if values :
95
95
arguments .append ( "-values" )
96
- arguments .append ( values . replace ( ' ' , ',' ) )
96
+ arguments .append ( ',' . join ( values ) )
97
97
if self .distUnitsCheck .isChecked () and self .distUnitsCombo .currentIndex () >= 0 :
98
98
arguments .append ( "-distunits" )
99
99
arguments .append ( self .distUnitsCombo .currentText ())
You can’t perform that action at this time.
0 commit comments