diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-04 22:45:22 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-02-04 22:45:22 +0100 |
| commit | a705b3d79e7cbeb887353c4e107e32844b13d7a9 (patch) | |
| tree | 5a699c63b55193a0d7bc94b7911d38126c36d8da /src/LayoutingQueueItem.cs | |
| parent | 64572f9c6301ddf4ed2921597366ff3ebd3d7c0f (diff) | |
register LinkedListNode, prevent uneeded cyclic ref
Diffstat (limited to 'src/LayoutingQueueItem.cs')
| -rw-r--r-- | src/LayoutingQueueItem.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs index 816d1923..80d04dc6 100644 --- a/src/LayoutingQueueItem.cs +++ b/src/LayoutingQueueItem.cs @@ -37,8 +37,7 @@ namespace Crow } public class LayoutingQueueItem - { - public LinkedListNode<LayoutingQueueItem> Node; + { public ILayoutable GraphicObject; public LayoutingType LayoutType; @@ -46,11 +45,8 @@ namespace Crow { LayoutType = _layoutType; GraphicObject = _graphicObject; - GraphicObject.RegisteredLQIs.Add (this); - } - public void DeleteLayoutableRef(){ - GraphicObject.RegisteredLQIs.Remove(this); } + public void ProcessLayouting() { #if DEBUG_LAYOUTING |