mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-06 23:40:52 +01:00
lcl: call inherited after setting FLines in TCustomMemo.InitializeWnd. Fix potential crash since widgetset code expect FLines be initialized
git-svn-id: trunk@36757 -
This commit is contained in:
parent
03e0cafaf9
commit
ec03b534ad
@ -135,11 +135,6 @@ begin
|
||||
{$ifdef DEBUG_MEMO}
|
||||
DebugLn('[TCustomMemo.InitializeWnd] A ',FLines.ClassName);
|
||||
{$endif}
|
||||
inherited InitializeWnd;
|
||||
{$ifdef DEBUG_MEMO}
|
||||
DebugLn('[TCustomMemo.InitializeWnd] B ',DbgSName(Self),' ',FLines.ClassName,' FLines.Count=',dbgs(FLines.Count));
|
||||
{$endif}
|
||||
|
||||
// fetch/create the interface item list
|
||||
NewStrings := TWSCustomMemoClass(WidgetSetClass).GetStrings(Self);
|
||||
// copy the items (text)
|
||||
@ -151,6 +146,7 @@ begin
|
||||
// new item list is the interface item list
|
||||
FLines:= NewStrings;
|
||||
|
||||
inherited InitializeWnd;
|
||||
{$ifdef DEBUG_MEMO}
|
||||
DebugLn('[TCustomMemo.InitializeWnd] END ',DbgSName(Self),' ',FLines.ClassName,' FLines.Count=',dbgs(FLines.Count));
|
||||
{$endif}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user