瀏覽代碼

wx.iscatt: show right name of raster in warning

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58240 15284696-431f-4ddb-bdfa-cd5b030d7da7
Štěpán Turek 11 年之前
父節點
當前提交
1ab449713c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/iscatt/controllers.py

+ 1 - 1
gui/wxpython/iscatt/controllers.py

@@ -298,7 +298,7 @@ class ScattsManager:
         err = ""
         for b in [b_1_name, b_2_name]:
             if self.bands_info[b] is None:
-                err += _("Band <%s> is not CELL (integer) type.\n" % self.all_bands[b_1])
+                err += _("Band <%s> is not CELL (integer) type.\n" % b)
         if err:
             GMessage(parent=self.guiparent, 
                      message=_("Scatter plot cannot be added.\n" + err))