Skip to content

Commit

Permalink
[sextante] fixed some minor bugs due to new SIP API
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jul 1, 2013
1 parent cfebe8f commit df398a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/plugins/sextante/algs/ftools/Dissolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def processAlgorithm(self, progress):
progress.setPercentage(int(nElement/nFeat * 100))
atMap = inFeat.attributes()
tempItem = atMap[ field ]
if tempItem.strip() == item.strip():
if unicode(tempItem).strip() == unicode(item).strip():
if first:
QgsGeometry( inFeat.geometry() )
tmpInGeom = QgsGeometry( inFeat.geometry() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def processAlgorithm(self, progress):
for inFeat in features:
atMap = inFeat.attributes()
idVar = atMap[index]
if idVar.strip() == i.strip():
if unicode(idVar).strip() == unicode(i).strip():
if first:
attrs = atMap
print attrs
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/sextante/gui/FileSelectionPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ def getValue(self):
return s

def setText(self, text):
self.text.setText(text)
self.text.setText(text)
4 changes: 2 additions & 2 deletions python/plugins/sextante/modeler/ModelerParametersDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ def setParamNumberValue(self, param, widget):
except:
return False
else:
value = widget.itemData(widget.currentIndex()).toPyObject()
value = widget.itemData(widget.currentIndex())
self.params[param.name] = value
return True

Expand All @@ -756,7 +756,7 @@ def setParamExtentValue(self, param, widget):
return False
self.values[name] = s
else:
value = widget.itemData(widget.currentIndex()).toPyObject()
value = widget.itemData(widget.currentIndex())
self.params[param.name] = value
return True

Expand Down

0 comments on commit df398a1

Please sign in to comment.