summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2009-10-02 17:10:02 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2009-10-02 17:10:02 +0200
commit52a056f0dc469303190f1f91ec417b8b1f5f083f (patch)
tree96fa1b45beff87b67c5afdabff72371d0dd7a3ea
parent5aef874a9d118863b0a27f83f883f6874e011ed9 (diff)
downloadfpGUI-52a056f0dc469303190f1f91ec417b8b1f5f083f.tar.xz
topic.gettext now uses a String type instead of PChar.
Signed-off-by: Graeme Geldenhuys <graeme@mastermaths.co.za>
-rw-r--r--src/frm_main.pas9
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;