diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-08 17:22:23 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-08 17:22:23 +0100 |
| commit | a5eec67305d20d7112743f649e2a327ba717ceec (patch) | |
| tree | 6f2c6402e64e0d9d5cae161a5ac08b63be56ad9f /src/LayoutingQueueItem.cs | |
| parent | d810ad18dc2a1908211b6967d666c915140f24c9 (diff) | |
MaxLayoutingTries; CachingEnabled in GraphicObject + MaxCacheSize
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 a558efd2..03a39c5c 100644 --- a/src/LayoutingQueueItem.cs +++ b/src/LayoutingQueueItem.cs @@ -61,8 +61,11 @@ namespace Crow #if DEBUG_LAYOUTING Debug.WriteLine ("Requeuing => " + this.ToString ()); #endif - Interface.LayoutingQueue.Enqueue (this); + GraphicObject.LayoutingTries ++; + if (GraphicObject.LayoutingTries < Interface.MaxLayoutingTries) + Interface.LayoutingQueue.Enqueue (this); } else { + GraphicObject.LayoutingTries = 0; #if DEBUG_LAYOUTING Debug.WriteLine ("Layouting => " + this.ToString ()); #endif |