LCL/SpeedButton: Fix clipping of caption containing double ampersand characters, issue #39820.

This commit is contained in:
wp_xyz 2022-10-27 22:27:35 +02:00
parent 8ef10902f3
commit fbe7aa44e1

View File

@ -1124,7 +1124,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);