diff options
Diffstat (limited to 'src/LayoutingQueueItem.cs')
| -rw-r--r-- | src/LayoutingQueueItem.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs index 7efdf1bc..91385c3e 100644 --- a/src/LayoutingQueueItem.cs +++ b/src/LayoutingQueueItem.cs @@ -98,14 +98,12 @@ namespace Crow public void ProcessLayouting() { GraphicObject go = Layoutable as GraphicObject; -// if (go == null) { -// Debug.WriteLine ("ERROR: processLayouting on something else than a graphic object: " + this.ToString ()); -// return; -// } go.parentRWLock.EnterReadLock (); if (go.Parent == null) {//TODO:improve this + go.registeredLayoutings &= (~LayoutType); + go.requestedLayoutings |= LayoutType; //cancel layouting for object without parent, maybe some were in queue when //removed from a listbox #if DEBUG_UPDATE || DEBUG_LAYOUTING @@ -114,6 +112,7 @@ namespace Crow go.parentRWLock.ExitReadLock (); return; } + #if DEBUG_LAYOUTING LQITime.Start(); Debug.WriteLine ("=> " + this.ToString ()); @@ -135,11 +134,12 @@ namespace Crow Layoutable.RegisteredLayoutings |= LayoutType; (Layoutable as GraphicObject).IFace.DiscardQueue.Enqueue (this); } -// #if DEBUG_LAYOUTING + //#if DEBUG_LAYOUTING else Debug.WriteLine ("\tDELETED => " + this.ToString ()); -// #endif + //#endif } + else{ if (LayoutingTries > 2 || DiscardCount > 0) Debug.WriteLine (this.ToString ()); |