summaryrefslogtreecommitdiff
path: root/docview
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-08-26 10:46:52 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-08-26 10:46:52 +0200
commitfb400c720d7029ac817605d405a6cef06188d52e (patch)
treea708ee7a61a8a667b68690b338b0160a1bda5df0 /docview
parentf23628e9d8482e5faf792f63512de12e8667e387 (diff)
downloadfpGUI-fb400c720d7029ac817605d405a6cef06188d52e.tar.xz
docview: fixed access violation when viewing some topics
* Not all topics need to be in the TOC tree view. When viewing such hidden topics, the method updating the Status Bar caused an access violation. Added some checks which new fixes the issue.
Diffstat (limited to 'docview')
-rw-r--r--docview/src/frm_main.pas2
1 files changed, 2 insertions, 0 deletions
diff --git a/docview/src/frm_main.pas b/docview/src/frm_main.pas
index 4eae0358..c3c0fd1e 100644
--- a/docview/src/frm_main.pas
+++ b/docview/src/frm_main.pas
@@ -954,6 +954,8 @@ begin
s := '';
sep := '';
n := tvContents.Selection;
+ if n = nil then
+ Exit;
while n.Parent <> nil do
begin
s := n.Parent.Text + sep + s;