From 7508793f7de217c63fc8d8ddf3219045d7bc09f3 Mon Sep 17 00:00:00 2001 From: Heiko Klare Date: Sat, 6 Jun 2026 09:18:40 +0200 Subject: [PATCH] Remove obsolete and misleading code comment The code to which the comment belonged was removed in c77d695e019c8588836e2bfd6f985da5a9a6e968 but the comment was accidentally left in the code. --- .../Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java index 06f5955b9d..13709a7021 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Button.java @@ -206,11 +206,6 @@ void _setText (String text) { OS.SetWindowLong (handle, OS.GWL_STYLE, newBits); OS.InvalidateRect (handle, null, true); } - /* - * Bug in Windows. When a Button control is right-to-left and - * is disabled, the first pixel of the text is clipped. The fix - * is to append a space to the text. - */ TCHAR buffer = new TCHAR (getCodePage (), text, true); OS.SetWindowText (handle, buffer); if ((state & HAS_AUTO_DIRECTION) != 0) {