mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 17:20:55 +02:00
Fix usage of ampersand characters in button auto-sizing (see commit 95fd38692d
).
This commit is contained in:
parent
95fd38692d
commit
c648a3f54a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user