Jelajahi Sumber

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

Tomas Zigo 3 tahun lalu
induk
melakukan
2586b0ea7b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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(