From 3bcf00abd7aa6b515e776e18b3e295467a693959 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Sat, 24 Jul 1999 22:38:00 +0000 Subject: [PATCH] minor fix to find contents file alright git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/helphtml.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/generic/helphtml.cpp b/src/generic/helphtml.cpp index 190574aade..3e0a648dee 100644 --- a/src/generic/helphtml.cpp +++ b/src/generic/helphtml.cpp @@ -217,7 +217,11 @@ wxHTMLHelpControllerBase::DisplayContents() } bool rc = FALSE; - if(contents.Length() && wxFileExists(contents.BeforeLast('#'))) + wxString file; + file << m_MapFile << WXEXTHELP_SEPARATOR << contents; + if(file.Contains('#')) + file = file.BeforeLast('#'); + if(contents.Length() && wxFileExists(file)) rc = DisplaySection(CONTENTS_ID); // if not found, open homemade toc: -- 2.50.0