# HG changeset patch # User laurent # Date 1349111451 -7200 # Node ID ec9e6ef49878810f0f406a65efb6e718afb4b134 # Parent 7e6fb43804a84cd46e78cf1e403eac7f36938d21 Fixing bug when spinctrl new value is changed by ConfTreeNode diff -r 7e6fb43804a8 -r ec9e6ef49878 editors/ConfTreeNodeEditor.py --- a/editors/ConfTreeNodeEditor.py Mon Oct 01 19:09:40 2012 +0200 +++ b/editors/ConfTreeNodeEditor.py Mon Oct 01 19:10:51 2012 +0200 @@ -530,7 +530,10 @@ def OnTextCtrlChanged(event): res = self.SetConfNodeParamsAttribute(path, textctrl.GetValue()) if res != textctrl.GetValue(): - textctrl.ChangeValue(res) + if isinstance(textctrl, wx.SpinCtrl): + textctrl.SetValue(res) + else: + textctrl.ChangeValue(res) if refresh: wx.CallAfter(self.ParentWindow._Refresh, TITLE, FILEMENU, PROJECTTREE, PAGETITLES) wx.CallAfter(self.ParentWindow.SelectProjectTreeItem, self.GetTagName())