aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/LayoutingQueueItem.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-15 17:56:20 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-18 15:38:21 +0100
commitb1810f1f58d44a3d4779bf4f0c5858a52444ec29 (patch)
tree206059d4fea3d5d05d106a11f10273129e5ed3d1 /src/LayoutingQueueItem.cs
parentc94c0f4ad2f762b7e187e8e660cd702efb3e3ea9 (diff)
testing with requestedLayouting fieldRequestedLayoutings
Diffstat (limited to 'src/LayoutingQueueItem.cs')
-rw-r--r--src/LayoutingQueueItem.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/LayoutingQueueItem.cs b/src/LayoutingQueueItem.cs
index 7efdf1bc..91385c3e 100644
--- a/src/LayoutingQueueItem.cs
+++ b/src/LayoutingQueueItem.cs
@@ -98,14 +98,12 @@ namespace Crow
public void ProcessLayouting()
{
GraphicObject go = Layoutable as GraphicObject;
-// if (go == null) {
-// Debug.WriteLine ("ERROR: processLayouting on something else than a graphic object: " + this.ToString ());
-// return;
-// }
go.parentRWLock.EnterReadLock ();
if (go.Parent == null) {//TODO:improve this
+ go.registeredLayoutings &= (~LayoutType);
+ go.requestedLayoutings |= LayoutType;
//cancel layouting for object without parent, maybe some were in queue when
//removed from a listbox
#if DEBUG_UPDATE || DEBUG_LAYOUTING
@@ -114,6 +112,7 @@ namespace Crow
go.parentRWLock.ExitReadLock ();
return;
}
+
#if DEBUG_LAYOUTING
LQITime.Start();
Debug.WriteLine ("=> " + this.ToString ());
@@ -135,11 +134,12 @@ namespace Crow
Layoutable.RegisteredLayoutings |= LayoutType;
(Layoutable as GraphicObject).IFace.DiscardQueue.Enqueue (this);
}
-// #if DEBUG_LAYOUTING
+ //#if DEBUG_LAYOUTING
else
Debug.WriteLine ("\tDELETED => " + this.ToString ());
-// #endif
+ //#endif
}
+
else{
if (LayoutingTries > 2 || DiscardCount > 0)
Debug.WriteLine (this.ToString ());