mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-08 14:38:48 +02:00
LCL/SpeedButton: Fix clipping of caption containing double ampersand characters, issue #39820.
This commit is contained in:
parent
8ef10902f3
commit
fbe7aa44e1
@ -1124,7 +1124,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