aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/LayoutingQueueItem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/LayoutingQueueItem.cs')
-rw-r--r--src/LayoutingQueueItem.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs
index a7909022..6de5be7b 100644
--- a/src/LayoutingQueueItem.cs
+++ b/src/LayoutingQueueItem.cs
@@ -31,6 +31,7 @@ namespace Crow
None = 0x00,
X = 0x01,
Y = 0x02,
+ Positioning = 0x03,
Width = 0x04,
Height = 0x08,
Sizing = 0x0C,
@@ -100,12 +101,12 @@ namespace Crow
if (LayoutingTries < Interface.MaxLayoutingTries) {
LayoutingTries++;
Layoutable.RegisteredLayoutings |= LayoutType;
- Interface.CurrentInterface.LayoutingQueue.Enqueue (this);
+ (Layoutable as GraphicObject).CurrentInterface.LayoutingQueue.Enqueue (this);
} else if (DiscardCount < Interface.MaxDiscardCount) {
LayoutingTries = 0;
DiscardCount++;
Layoutable.RegisteredLayoutings |= LayoutType;
- Interface.CurrentInterface.DiscardQueue.Enqueue (this);
+ (Layoutable as GraphicObject).CurrentInterface.DiscardQueue.Enqueue (this);
}
#if DEBUG_LAYOUTING
else