Skip to content

Commit

Permalink
wxGUI/vdigit: fix 'Copy categories/features' editing tool if you sele…
Browse files Browse the repository at this point in the history
…ct only one feature (#1816)
  • Loading branch information
tmszi committed Aug 26, 2021
1 parent fe87cd0 commit 0a2e6a7
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions gui/wxpython/vdigit/mapwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,11 +1035,19 @@ def _onRightUp(self, event):
fid = self.digit.RemoveVertex(self.Pixel2Cell(self.mouse['begin']))
if fid < 0:
return
self._geomAttrbUpdate([fid, ])
elif action in ("copyCats", "copyAttrs"):
if action == 'copyCats':
if self.digit.CopyCats(self.copyCatsList,
self.copyCatsIds, copyAttrb=False) < 0:
self._geomAttrbUpdate(
[
fid,
]
)
elif action in ("copyCats", "copyAttrs") and hasattr(self, "copyCatsIds"):
if action == "copyCats":
if (
self.digit.CopyCats(
self.copyCatsList, self.copyCatsIds, copyAttrb=False
)
< 0
):
return
else:
if self.digit.CopyCats(self.copyCatsList,
Expand Down

0 comments on commit 0a2e6a7

Please sign in to comment.