Selaa lähdekoodia

wxGUI/vdigit: bug fix copy cats for GV_POINTS & GV_LINES
(merge from devbr6, https://trac.osgeo.org/grass/changeset/33212)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33213 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 vuotta sitten
vanhempi
commit
0c9d633a8b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      gui/wxpython/gui_modules/mapdisp.py

+ 1 - 1
gui/wxpython/gui_modules/mapdisp.py

@@ -1440,7 +1440,7 @@ class BufferedWindow(MapWindow, wx.Window):
                 elif digitToolbar.GetAction() in ("copyCats", "copyAttrs"):
                     if not hasattr(self, "copyCatsIds"):
                         # 'from' -> select by point
-                        nselected = digitClass.driver.SelectLineByPoint(pos1, type=VDigit_Lines_Type)
+                        nselected = digitClass.driver.SelectLineByPoint(pos1, digitClass.GetSelectType())
                         if nselected:
                             if UserSettings.Get(group='advanced', key='digitInterface', subkey='type') == 'vedit':
                                 qdist = 10.0 * ((self.Map.region['e'] - self.Map.region['w']) / \