浏览代码

Fix https://trac.osgeo.org/grass/changeset/49997

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@50019 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 13 年之前
父节点
当前提交
9074959557
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/r.mask/r.mask.py

+ 1 - 1
scripts/r.mask/r.mask.py

@@ -64,7 +64,7 @@ def main():
     if not grass.find_file(input)['file'] and not remove:
         grass.fatal(_("<%s> does not exist.") % input)
 
-    if maskcats and not remove:
+    if maskcats != '*' and not remove:
         if grass.raster_info(input)['datatype'] != "CELL":
             grass.fatal(_("Raster map %s must be integer for maskcats parameter") % input)