Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix for #6749 and #6278
  • Loading branch information
slarosa committed Nov 27, 2012
1 parent b54c3bf commit 635e19a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/plugins/sextante/gui/NumberInputDialog.py
Expand Up @@ -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))
Expand Down

0 comments on commit 635e19a

Please sign in to comment.