Explorar o código

wxGUI/vdigit: fix UpdateSettings (missing close boundary option)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54393 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa %!s(int64=12) %!d(string=hai) anos
pai
achega
4c719ae3e1
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      gui/wxpython/vdigit/preferences.py

+ 6 - 0
gui/wxpython/vdigit/preferences.py

@@ -691,6 +691,8 @@ class VDigitSettingsDialog(wx.Dialog):
         
     def UpdateSettings(self):
         """!Update digitizer settings
+
+        @todo Needs refactoring 
         """
         if self.parent.GetLayerManager():
             self.parent.GetLayerManager().WorkspaceChanged() # geometry attributes
@@ -798,6 +800,10 @@ class VDigitSettingsDialog(wx.Dialog):
         # break lines
         UserSettings.Set(group = 'vdigit', key = "breakLines", subkey = 'enabled',
                          value = self.intersect.IsChecked())
+
+        # close boundary
+        UserSettings.Set(group = 'vdigit', key = "closeBoundary", subkey = 'enabled',
+                         value = self.closeBoundary.IsChecked())
         
         self.digit.UpdateSettings()