aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/DockStack.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-15 00:25:23 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-15 00:25:23 +0100
commitc6da15c4ffed4fd9a54a4c3668853e2564150326 (patch)
tree1b3b108409d1ba39f8cfeebcdb8378662779bcb8 /src/GraphicObjects/DockStack.cs
parent709e0b82e0f5445082b7efb67bdc24d2cf6df6ba (diff)
remove docker, floating dockingwin should be added to iface
Diffstat (limited to 'src/GraphicObjects/DockStack.cs')
-rw-r--r--src/GraphicObjects/DockStack.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/GraphicObjects/DockStack.cs b/src/GraphicObjects/DockStack.cs
index caefb2ec..cdd43d80 100644
--- a/src/GraphicObjects/DockStack.cs
+++ b/src/GraphicObjects/DockStack.cs
@@ -30,9 +30,7 @@ namespace Crow
{
[DesignIgnore]
public class DockStack : GenericStack
- {
- Docker rootDock { get { return LogicalParent as Docker; }}
-
+ {
#region CTor
public DockStack () {}
public DockStack (Interface iface) : base (iface) {}
@@ -41,7 +39,10 @@ namespace Crow
public override void AddChild (GraphicObject g)
{
base.AddChild (g);
- g.LogicalParent = this.LogicalParent;
+ if (localLogicalParentIsNull)
+ g.LogicalParent = this;
+ else
+ g.LogicalParent = this.LogicalParent;
}
public override void InsertChild (int idx, GraphicObject g)
{