aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/LayoutingQueueItem.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-02-08 17:22:23 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2016-02-08 17:22:23 +0100
commita5eec67305d20d7112743f649e2a327ba717ceec (patch)
tree6f2c6402e64e0d9d5cae161a5ac08b63be56ad9f /src/LayoutingQueueItem.cs
parentd810ad18dc2a1908211b6967d666c915140f24c9 (diff)
MaxLayoutingTries; CachingEnabled in GraphicObject + MaxCacheSize
Diffstat (limited to 'src/LayoutingQueueItem.cs')
-rw-r--r--src/LayoutingQueueItem.cs5
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