mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 10:59:07 +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
|
if FShowCaption and (Caption <> '') then
|
||||||
begin
|
begin
|
||||||
TMP := Caption;
|
TMP := Caption;
|
||||||
DeleteAmpersands(TMP);
|
|
||||||
Flags := DT_CalcRect;
|
Flags := DT_CalcRect;
|
||||||
if not Canvas.TextStyle.SingleLine then
|
if not Canvas.TextStyle.SingleLine then
|
||||||
Inc(Flags, DT_WordBreak);
|
Inc(Flags, DT_WordBreak);
|
||||||
|
Loading…
Reference in New Issue
Block a user