From 147c30cfae909ba993d64d9944337db9492ea54a Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Wed, 24 Mar 2010 19:12:24 +0000 Subject: [PATCH] WPF Designer: removed incorrect cast that caused columns to be sized incorrectly when inserting into a Grid git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5638 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../WpfDesign.Designer/Project/Controls/GridAdorner.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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