diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-26 10:46:52 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2010-08-26 10:46:52 +0200 |
commit | fb400c720d7029ac817605d405a6cef06188d52e (patch) | |
tree | a708ee7a61a8a667b68690b338b0160a1bda5df0 /docview | |
parent | f23628e9d8482e5faf792f63512de12e8667e387 (diff) | |
download | fpGUI-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.pas | 2 |
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; |