mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 16:39:15 +02:00
gtk: fix word wrapping of TStaticText (issue #0015078)
git-svn-id: trunk@22687 -
This commit is contained in:
parent
776f474483
commit
eb5ca6d8d6
@ -1571,7 +1571,7 @@ begin
|
||||
|
||||
if TStaticText(AWinControl).ShowAccelChar then
|
||||
begin
|
||||
DC := Widgetset.GetDC(HDC(PtrUInt(GetStyleWidget(lgsLabel))));
|
||||
DC := Widgetset.GetDC(HWND(PtrUInt(LblWidget)));
|
||||
ALabel := TGtkWidgetSet(WidgetSet).ForceLineBreaks(
|
||||
DC, PChar(AText), TStaticText(AWinControl).Width, false);
|
||||
Widgetset.DeleteDC(DC);
|
||||
|
Loading…
Reference in New Issue
Block a user