Skip to content
Permalink
Browse files
fix for #6749 and #6278
  • Loading branch information
slarosa committed Nov 27, 2012
1 parent b54c3bf commit 635e19ad32fd77f23773f1744ccfcf1a044165e5
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 635e19a

Please sign in to comment.