diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-02 17:10:02 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2009-10-02 17:10:02 +0200 |
commit | 52a056f0dc469303190f1f91ec417b8b1f5f083f (patch) | |
tree | 96fa1b45beff87b67c5afdabff72371d0dd7a3ea /src | |
parent | 5aef874a9d118863b0a27f83f883f6874e011ed9 (diff) | |
download | fpGUI-52a056f0dc469303190f1f91ec417b8b1f5f083f.tar.xz |
topic.gettext now uses a String type instead of PChar.
Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
Diffstat (limited to 'src')
-rw-r--r-- | src/frm_main.pas | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/frm_main.pas b/src/frm_main.pas index 20cad3ff..5b98b3e8 100644 --- a/src/frm_main.pas +++ b/src/frm_main.pas @@ -492,7 +492,7 @@ end; procedure TMainForm.DisplayTopic; var - text: PChar; + lText: String; ImageIndices: TList; LinkIndex: longint; Link: THelpLink; @@ -520,20 +520,19 @@ Begin if HelpFile.HighlightWords <> nil then ProfileEvent('highlightwords is ok'); - Text := nil; + lText := ''; ProfileEvent('Debug = ' + BoolToStr(Debug)); if ImageIndices <> nil then ProfileEvent('ImageIndices initialized'); Topic.GetText(HelpFile.HighlightWords, Debug, - Text, + lText, ImageIndices ); { TODO -oGraeme : We do not support images yet } ImageIndices.Free; - Memo1.Lines.Text := Text; - StrDispose( Text ); + Memo1.Lines.Text := lText; end; procedure TMainForm.ResetProgress; |