]> O.S.I.I.S - jp/crow.git/commitdiff
clear binding of child when removed from group
authorjpbruyere <jp.bruyere@hotmail.com>
Tue, 15 Sep 2015 16:20:42 +0000 (18:20 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Tue, 15 Sep 2015 16:20:42 +0000 (18:20 +0200)
src/GraphicObjects/Group.cs

index f58fdf35966f0e123bb8cbc866b193a532d30e93..763cc091805c7bd2b741ff758e2c7c2f7c8db4c5 100644 (file)
@@ -47,9 +47,10 @@ namespace go
             return (T)child;\r
         }\r
         public virtual void removeChild(GraphicObject child)        \r
-               {\r
+               {                       \r
+                       child.ClearBinding ();\r
+                       child.Parent = null;\r
             Children.Remove(child);\r
-            child.Parent = null;\r
                        this.RegisterForLayouting ((int)LayoutingType.Sizing);\r
         }\r
 \r