diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-06 15:46:32 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-06 15:46:32 +0100 |
| commit | cb91338f8038afbade79f12e04d0294b94f75228 (patch) | |
| tree | f5edb1dc9e12f45f4938ed96979e4d16b1461863 /src/LayoutingQueueItem.cs | |
| parent | 4f73db4b5e1d823448b8f9c0ad3094ce23afe6c9 (diff) | |
simpler layouting queue test
Diffstat (limited to 'src/LayoutingQueueItem.cs')
| -rw-r--r-- | src/LayoutingQueueItem.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs index 8fbd95ca..d5ad7fcc 100644 --- a/src/LayoutingQueueItem.cs +++ b/src/LayoutingQueueItem.cs @@ -46,6 +46,7 @@ namespace Crow { LayoutType = _layoutType; GraphicObject = _graphicObject; + GraphicObject.RegisteredLayoutings |= LayoutType; } public void ProcessLayouting() @@ -53,12 +54,14 @@ namespace Crow #if DEBUG_LAYOUTING Debug.WriteLine ("Layouting => " + this.ToString ()); #endif + try { if (GraphicObject.Parent == null){ Debug.WriteLine("ERROR: processLayouting, no parent for: " + GraphicObject.ToString()); return; } - GraphicObject.UpdateLayout (LayoutType); + if (!GraphicObject.UpdateLayout (LayoutType)) + Interface.LayoutingQueue.Enqueue(this); } catch (Exception ex) { Debug.WriteLine ("Layouting error: " + ex.ToString ()); } |