浏览代码

wxGUI/vdigit: fix 'Copy categories/features' editing tool if you select only one feature (#1816)

Tomas Zigo 3 年之前
父节点
当前提交
2586b0ea7b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/vdigit/mapwindow.py

+ 1 - 1
gui/wxpython/vdigit/mapwindow.py

@@ -1092,7 +1092,7 @@ class VDigitWindow(BufferedMapWindow):
                     fid,
                 ]
             )
-        elif action in ("copyCats", "copyAttrs"):
+        elif action in ("copyCats", "copyAttrs") and hasattr(self, "copyCatsIds"):
             if action == "copyCats":
                 if (
                     self.digit.CopyCats(