aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/LayoutingQueueItem.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-26 10:24:39 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-26 10:24:39 +0200
commit4b39241bad2eb55a91305c4aa5197c1640e81c48 (patch)
treec7c69917b6d2ac1ec985c9cddd5f66961c0f26cd /src/LayoutingQueueItem.cs
parentda33782c4ab475d0e8c1216f13ecbff2450ec546 (diff)
remove Initialise, currentInterface is set by instanciator
Diffstat (limited to 'src/LayoutingQueueItem.cs')
-rw-r--r--src/LayoutingQueueItem.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs
index 7f272d98..47807a99 100644
--- a/src/LayoutingQueueItem.cs
+++ b/src/LayoutingQueueItem.cs
@@ -116,7 +116,7 @@ namespace Crow
#endif
if (LayoutingTries < Interface.MaxLayoutingTries) {
Layoutable.RegisteredLayoutings |= LayoutType;
- (Layoutable as GraphicObject).CurrentInterface.LayoutingQueue.Enqueue (this);
+ (Layoutable as GraphicObject).currentInterface.LayoutingQueue.Enqueue (this);
} else if (DiscardCount < Interface.MaxDiscardCount) {
#if DEBUG_LAYOUTING
Debug.WriteLine ("\t\tDiscarded");
@@ -124,7 +124,7 @@ namespace Crow
LayoutingTries = 0;
DiscardCount++;
Layoutable.RegisteredLayoutings |= LayoutType;
- (Layoutable as GraphicObject).CurrentInterface.DiscardQueue.Enqueue (this);
+ (Layoutable as GraphicObject).currentInterface.DiscardQueue.Enqueue (this);
}
#if DEBUG_LAYOUTING
else