mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 03:37:54 +02:00
LCL/SpeedButton: Fix clipping of caption containing double ampersand characters, issue #39820.
(cherry picked from commit fbe7aa44e1
)
This commit is contained in:
parent
f933c75d91
commit
e23483223f
@ -1119,7 +1119,6 @@ begin
|
||||
if FShowCaption and (Caption <> '') then
|
||||
begin
|
||||
TMP := Caption;
|
||||
DeleteAmpersands(TMP);
|
||||
Flags := DT_CalcRect;
|
||||
if not Canvas.TextStyle.SingleLine then
|
||||
Inc(Flags, DT_WordBreak);
|
||||
|
Loading…
Reference in New Issue
Block a user