From f8be3fa041904b2cb9e55299a4497b288b145d00 Mon Sep 17 00:00:00 2001 From: Dirkster99 Date: Thu, 14 Feb 2019 21:02:03 +0100 Subject: [PATCH] [Fix for issue #1379 as suggested by RecursiveNerd](/Dirkster99/AvalonDock/commit/79f3416ce520e74bba0371a0fb82c848fd3176c7) AvalonDockCrash in LayoutGridControl after Resize - ArgumentException #1379 Prevent crash from setting negative size https://github.com/RecursiveNerd/wpftoolkit/commit/38d36f236727cf48ab0e82e9794e1f927d059695 --- .../Xceed.Wpf.AvalonDock/Layout/LayoutPositionableGroup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Components/Xceed.Wpf.AvalonDock/Layout/LayoutPositionableGroup.cs b/source/Components/Xceed.Wpf.AvalonDock/Layout/LayoutPositionableGroup.cs index 149598b7..c87e2c5a 100644 --- a/source/Components/Xceed.Wpf.AvalonDock/Layout/LayoutPositionableGroup.cs +++ b/source/Components/Xceed.Wpf.AvalonDock/Layout/LayoutPositionableGroup.cs @@ -50,7 +50,7 @@ public GridLength DockWidth } set { - if( DockWidth != value ) + if( DockWidth != value && value.Value > 0) { RaisePropertyChanging( "DockWidth" ); _dockWidth = value; @@ -74,7 +74,7 @@ public GridLength DockHeight } set { - if( DockHeight != value ) + if( DockHeight != value && value.Value > 0) { RaisePropertyChanging( "DockHeight" ); _dockHeight = value;