From fb400c720d7029ac817605d405a6cef06188d52e Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Thu, 26 Aug 2010 10:46:52 +0200 Subject: 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. --- docview/src/frm_main.pas | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docview') 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; -- cgit v1.2.3-70-g09d2