Fix usage of ampersand characters in button auto-sizing (see commit 95fd38692d).

This commit is contained in:
wp_xyz 2025-06-05 14:15:29 +02:00
parent 95fd38692d
commit c648a3f54a

View File

@ -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