Modifications on divergence not buffered fixed
authorlbessard
Fri, 13 Mar 2009 16:23:32 +0100
changeset 318 2a5421d0f286
parent 317 bb25a8edd3e4
child 319 efe0671df286
Modifications on divergence not buffered fixed
SFCViewer.py
--- a/SFCViewer.py	Fri Mar 13 16:20:37 2009 +0100
+++ b/SFCViewer.py	Fri Mar 13 16:23:32 2009 +0100
@@ -659,6 +659,7 @@
         if isinstance(divergence, SFC_Divergence):
             if self.GetDrawingMode() == FREEDRAWING_MODE:
                 divergence.AddBranch()
+                self.RefreshDivergenceModel(divergence)
             else:
                 type = divergence.GetType()
                 if type in [SELECTION_DIVERGENCE, SIMULTANEOUS_DIVERGENCE]:
@@ -679,6 +680,7 @@
         if isinstance(divergence, SFC_Divergence):
             if self.GetDrawingMode() == FREEDRAWING_MODE:
                 divergence.RemoveHandledBranch()
+                self.RefreshDivergenceModel(divergence)
                 self.RefreshBuffer()
                 self.RefreshScrollBars()
                 self.Refresh(False)