From e13832c15f9f7f17ba3d9e65ba3eec0397862251 Mon Sep 17 00:00:00 2001 From: gpetrou Date: Fri, 17 May 2019 10:03:05 +0100 Subject: [PATCH] Fix commented check in LayoutAnchorable Hide method --- .../Components/Xceed.Wpf.AvalonDock/Layout/LayoutAnchorable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Components/Xceed.Wpf.AvalonDock/Layout/LayoutAnchorable.cs b/source/Components/Xceed.Wpf.AvalonDock/Layout/LayoutAnchorable.cs index 29b8e0f4..5bbe0a1c 100644 --- a/source/Components/Xceed.Wpf.AvalonDock/Layout/LayoutAnchorable.cs +++ b/source/Components/Xceed.Wpf.AvalonDock/Layout/LayoutAnchorable.cs @@ -413,7 +413,7 @@ public void Hide( bool cancelable = true ) RaisePropertyChanging( "IsHidden" ); RaisePropertyChanging( "IsVisible" ); - //if (Parent is ILayoutPane) + if (Parent is ILayoutGroup) { var parentAsGroup = Parent as ILayoutGroup; PreviousContainer = parentAsGroup;