diff --git a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/GridAdorner.cs b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/GridAdorner.cs index 68e9b893d1..9fb765e6c3 100644 --- a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/GridAdorner.cs +++ b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Project/Controls/GridAdorner.cs @@ -369,8 +369,8 @@ namespace ICSharpCode.WpfDesign.Designer.Controls oldLength = new GridLength(oldActualValue); } double percentage = insertionPosition / oldActualValue; - newLength1 = new GridLength((int)(oldLength.Value * percentage), oldLength.GridUnitType); - newLength2 = new GridLength((int)(oldLength.Value - newLength1.Value), oldLength.GridUnitType); + newLength1 = new GridLength(oldLength.Value * percentage, oldLength.GridUnitType); + newLength2 = new GridLength(oldLength.Value - newLength1.Value, oldLength.GridUnitType); } #endregion