aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/LayoutingQueue.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/LayoutingQueue.cs')
-rw-r--r--src/LayoutingQueue.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/LayoutingQueue.cs b/src/LayoutingQueue.cs
index 68372bbb..6f84730d 100644
--- a/src/LayoutingQueue.cs
+++ b/src/LayoutingQueue.cs
@@ -35,7 +35,11 @@ namespace Crow
_object.RegisteredLQINodes.Add(this.AddLast (new LayoutingQueueItem (_lt, _object)));
}
LinkedListNode<LayoutingQueueItem> searchLqi(ILayoutable go, LayoutingType lt){
- return go.RegisteredLQINodes.Where(n => n.Value.LayoutType == lt).LastOrDefault();
+ for (int i = 0; i < go.RegisteredLQINodes.Count; i++) {
+ if (go.RegisteredLQINodes [i].Value.LayoutType == lt)
+ return go.RegisteredLQINodes [i];
+ }
+ return null;
}
public void EnqueueAfterParentSizing (LayoutingType _lt, ILayoutable _object)
{