From c648a3f54a7fc75144b0801cd42ec3d5237d26d3 Mon Sep 17 00:00:00 2001 From: wp_xyz Date: Thu, 5 Jun 2025 14:15:29 +0200 Subject: [PATCH] Fix usage of ampersand characters in button auto-sizing (see commit 95fd38692d). --- lcl/interfaces/win32/win32proc.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/interfaces/win32/win32proc.pp b/lcl/interfaces/win32/win32proc.pp index 34c18d7d12..a6e75ce61d 100644 --- a/lcl/interfaces/win32/win32proc.pp +++ b/lcl/interfaces/win32/win32proc.pp @@ -1074,7 +1074,7 @@ begin isMultiLine := (style and BS_MULTILINE <> 0); if isMultiLine then begin - flags := DT_CALCRECT or DT_NOPREFIX; + flags := DT_CALCRECT; R := Rect(0, 0, 10000, 10000); Result := Windows.DrawText(canvasHandle, PChar(Text), Length(Text), R, flags) <> 0; if Result then