summaryrefslogtreecommitdiffstats
path: root/src/htmlhelp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/htmlhelp.cpp')
-rw-r--r--src/htmlhelp.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp
index 5ff21f2..599e39c 100644
--- a/src/htmlhelp.cpp
+++ b/src/htmlhelp.cpp
@@ -364,9 +364,12 @@ void HtmlHelp::addContentsItem(const char *name,const char *ref,
{
int i; for (i=0;i<dc;i++) cts << " ";
cts << "<LI><OBJECT type=\"text/sitemap\">";
- cts << "<param name=\"Local\" value=\"" << ref << ".html";
- if (anchor) cts << "#" << anchor;
- cts << "\">";
+ if (ref)
+ {
+ cts << "<param name=\"Local\" value=\"" << ref << ".html";
+ if (anchor) cts << "#" << anchor;
+ cts << "\">";
+ }
cts << "<param name=\"Name\" value=\"" << name << "\">"
"</OBJECT>\n";
}