aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/LayoutingQueueItem.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-07 16:57:05 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-07 16:57:05 +0100
commitd78137f051fb9e5435b6c0288fca0e0a759af8b1 (patch)
treeeaf26ab66d4eb4e45becfb00b33260b1f906f13f /src/LayoutingQueueItem.cs
parentf5a17cd2428097265d94417dd33a6aae561ae8d3 (diff)
code clean
Diffstat (limited to 'src/LayoutingQueueItem.cs')
-rw-r--r--src/LayoutingQueueItem.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs
index ef787d35..a263f5fc 100644
--- a/src/LayoutingQueueItem.cs
+++ b/src/LayoutingQueueItem.cs
@@ -51,18 +51,21 @@ namespace Crow
public void ProcessLayouting()
{
- #if DEBUG_LAYOUTING
- Debug.WriteLine ("Layouting => " + this.ToString ());
- #endif
-
if (GraphicObject.Parent == null) {
//cancel layouting for object without parent, maybe some were in queue when
//removed from a listbox
Debug.WriteLine ("ERROR: processLayouting, no parent for: " + this.ToString ());
return;
}
- if (!GraphicObject.UpdateLayout (LayoutType))
- Interface.LayoutingQueue.Enqueue(this);
+ if (!GraphicObject.UpdateLayout (LayoutType)) {
+ #if DEBUG_LAYOUTING
+ Debug.WriteLine ("Requeuing => " + this.ToString ());
+ #endif
+ Interface.LayoutingQueue.Enqueue (this);
+ }else
+ #if DEBUG_LAYOUTING
+ Debug.WriteLine ("Layouting => " + this.ToString ());
+ #endif
}
public static implicit operator GraphicObject(LayoutingQueueItem queueItem)