summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2009-10-24 01:15:12 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2009-10-24 01:15:12 +0200
commitacac908d4c23334b449dde5238e69be85dcf54bd (patch)
tree0d1e79bdb2005e83f376ea74c0ed6a51a9173182
parente8b2375bb559f9b8bdadca771a9b6577938836c9 (diff)
downloadfpGUI-acac908d4c23334b449dde5238e69be85dcf54bd.tar.xz
Fix "index out of bounds" error when clicking on debug inf header menu option.
Signed-off-by: Graeme Geldenhuys <graemeg@gmail.com>
-rw-r--r--src/frm_main.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frm_main.pas b/src/frm_main.pas
index bb37f1b9..256c5ece 100644
--- a/src/frm_main.pas
+++ b/src/frm_main.pas
@@ -239,7 +239,7 @@ var
begin
RichView.Clear;
sl := TStringList.Create;
- f := THelpFile(Files[0]);
+ f := THelpFile(CurrentOpenFiles[0]);
with sl do
begin
Add('<b><u>Filename:</u></b> <red>' + f.Filename + '<black>');