]> O.S.I.I.S - jp/crow.git/commitdiff
reset resolved state of binding when cleared
authorjp <jp_bruyere@hotmail.com>
Sun, 28 Feb 2016 08:27:41 +0000 (09:27 +0100)
committerjp <jp_bruyere@hotmail.com>
Sun, 28 Feb 2016 08:27:41 +0000 (09:27 +0100)
src/GraphicObjects/GraphicObject.cs

index 894d227028413b6cb4f1d980c1123e3d7675db5d..0290efd3ed17767cdb17105258fc5c977c168bd2 100644 (file)
@@ -1383,8 +1383,11 @@ namespace Crow
                /// </summary>
                public virtual void ClearBinding(){
                        foreach (Binding b in Bindings) {
-                               if (string.IsNullOrEmpty (b.DynMethodId))
+                               if (string.IsNullOrEmpty (b.DynMethodId)) {
+                                       b.Resolved = false;
+                                       //TODO:check if full reset is necessary
                                        continue;
+                               }
                                MemberReference mr = null;
                                if (b.Target == null)
                                        mr = b.Source;