瀏覽代碼

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 12 年之前
父節點
當前提交
4c719ae3e1
共有 1 個文件被更改,包括 6 次插入0 次删除
  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()