Skip to content
Permalink
Browse files
Merge pull request #342 from slarosa/master
fix for #6749 and #6278
  • Loading branch information
volaya committed Nov 30, 2012
2 parents 047127b + 635e19a commit 75e004a65ca8bcfc29aad4827df12924df175210
Showing with 4 additions and 1 deletion.
  1. +4 −1 python/plugins/sextante/gui/NumberInputDialog.py
@@ -86,7 +86,10 @@ def fillTree(self):
layers = QGisLayers.getRasterLayers()
for layer in layers:
for i in range(layer.bandCount()):
stats = layer.bandStatistics(i)
if QGis.QGIS_VERSION_INT >= 10900:
stats = layer.dataProvider().bandStatistics(i+1)
else:
stats = layer.bandStatistics(i)
layerItem = QtGui.QTreeWidgetItem()
layerItem.setText(0, unicode(layer.name()))
layerItem.addChild(TreeValueItem("Mean", stats.mean))

0 comments on commit 75e004a

Please sign in to comment.