diff options
| author | j-p <jp.bruyere@live.be> | 2018-04-14 12:15:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-14 12:15:08 +0200 |
| commit | 907358fed63b4a89e8dee5184cc9901a7107ab9f (patch) | |
| tree | 18c473a86b553dbe9f08cfe345b6278c71e9594e /src/LayoutingQueueItem.cs | |
| parent | 7c735fa149bf23223eda734f19d5547797ca8ac2 (diff) | |
| parent | 5a06966fd4be89263988d0838556b78a7988b5a9 (diff) | |
Merge pull request #40 from jpbruyere/devel
Devel
Diffstat (limited to 'src/LayoutingQueueItem.cs')
| -rw-r--r-- | src/LayoutingQueueItem.cs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs index ba2f95af..7efdf1bc 100644 --- a/src/LayoutingQueueItem.cs +++ b/src/LayoutingQueueItem.cs @@ -98,10 +98,10 @@ 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; - } +// if (go == null) { +// Debug.WriteLine ("ERROR: processLayouting on something else than a graphic object: " + this.ToString ()); +// return; +// } go.parentRWLock.EnterReadLock (); @@ -125,7 +125,7 @@ namespace Crow #endif if (LayoutingTries < Interface.MaxLayoutingTries) { Layoutable.RegisteredLayoutings |= LayoutType; - (Layoutable as GraphicObject).CurrentInterface.LayoutingQueue.Enqueue (this); + (Layoutable as GraphicObject).IFace.LayoutingQueue.Enqueue (this); } else if (DiscardCount < Interface.MaxDiscardCount) { #if DEBUG_LAYOUTING Debug.WriteLine ("\t\tDiscarded"); @@ -133,18 +133,18 @@ namespace Crow LayoutingTries = 0; DiscardCount++; Layoutable.RegisteredLayoutings |= LayoutType; - (Layoutable as GraphicObject).CurrentInterface.DiscardQueue.Enqueue (this); + (Layoutable as GraphicObject).IFace.DiscardQueue.Enqueue (this); } - #if DEBUG_LAYOUTING +// #if DEBUG_LAYOUTING else Debug.WriteLine ("\tDELETED => " + this.ToString ()); - #endif +// #endif } - #if DEBUG_LAYOUTING else{ if (LayoutingTries > 2 || DiscardCount > 0) Debug.WriteLine (this.ToString ()); } + #if DEBUG_LAYOUTING LQITime.Stop(); #endif go.parentRWLock.ExitReadLock (); |