From b69a9ba57df7e1d04c88597bc829ae342d7d41c4 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 9 May 2010 16:08:05 +0000 Subject: [PATCH] win32: restore occasionally disabled spinedit autosize git-svn-id: trunk@25280 - --- lcl/interfaces/win32/win32wsspin.pp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lcl/interfaces/win32/win32wsspin.pp b/lcl/interfaces/win32/win32wsspin.pp index 6c4bd313a3..03f49c29fa 100644 --- a/lcl/interfaces/win32/win32wsspin.pp +++ b/lcl/interfaces/win32/win32wsspin.pp @@ -257,13 +257,11 @@ class procedure TWin32WSCustomFloatSpinEdit.GetPreferredSize( const AWinControl: TWinControl; var PreferredWidth, PreferredHeight: integer; WithThemeSpace: Boolean); begin - {if MeasureTextForWnd(AWinControl.Handle, 'Fj', PreferredWidth, PreferredHeight) then + if MeasureTextForWnd(AWinControl.Handle, 'Fj', PreferredWidth, PreferredHeight) then begin PreferredWidth := 0; Inc(PreferredHeight, 8); - end;} - PreferredHeight := 0; - PreferredWidth := 0; + end; end; class procedure TWin32WSCustomFloatSpinEdit.AdaptBounds(const AWinControl: TWinControl;