Skip to content

Commit 06e3488

Browse files
committed
bug 679192 Missing images from generated qhp file
- the file doxygen.svg has to be added with addImageFile as wee (and also nav_g.png) - the adding the static parts for the different output formats has to be done earlier otherwise e.g.. the copied resources (logo) won't land in the "overview files" (like index.qhp).
1 parent e84b043 commit 06e3488

File tree

2 files changed

+25
-23
lines changed

2 files changed

+25
-23
lines changed

src/doxygen.cpp

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12249,6 +12249,29 @@ void generateOutput()
1224912249
}
1225012250
g_s.end();
1225112251

12252+
// copy static stuff
12253+
if (generateHtml)
12254+
{
12255+
FTVHelp::generateTreeViewImages();
12256+
copyStyleSheet();
12257+
copyLogo(Config_getString(HTML_OUTPUT));
12258+
copyExtraFiles(Config_getList(HTML_EXTRA_FILES),"HTML_EXTRA_FILES",Config_getString(HTML_OUTPUT));
12259+
}
12260+
if (generateLatex)
12261+
{
12262+
copyLatexStyleSheet();
12263+
copyLogo(Config_getString(LATEX_OUTPUT));
12264+
copyExtraFiles(Config_getList(LATEX_EXTRA_FILES),"LATEX_EXTRA_FILES",Config_getString(LATEX_OUTPUT));
12265+
}
12266+
if (generateDocbook)
12267+
{
12268+
copyLogo(Config_getString(DOCBOOK_OUTPUT));
12269+
}
12270+
if (generateRtf)
12271+
{
12272+
copyLogo(Config_getString(RTF_OUTPUT));
12273+
}
12274+
1225212275
const FormulaManager &fm = FormulaManager::instance();
1225312276
if (fm.hasFormulas() && generateHtml
1225412277
&& !Config_getBool(USE_MATHJAX))
@@ -12413,29 +12436,6 @@ void generateOutput()
1241312436
g_s.end();
1241412437
}
1241512438

12416-
// copy static stuff
12417-
if (generateHtml)
12418-
{
12419-
FTVHelp::generateTreeViewImages();
12420-
copyStyleSheet();
12421-
copyLogo(Config_getString(HTML_OUTPUT));
12422-
copyExtraFiles(Config_getList(HTML_EXTRA_FILES),"HTML_EXTRA_FILES",Config_getString(HTML_OUTPUT));
12423-
}
12424-
if (generateLatex)
12425-
{
12426-
copyLatexStyleSheet();
12427-
copyLogo(Config_getString(LATEX_OUTPUT));
12428-
copyExtraFiles(Config_getList(LATEX_EXTRA_FILES),"LATEX_EXTRA_FILES",Config_getString(LATEX_OUTPUT));
12429-
}
12430-
if (generateDocbook)
12431-
{
12432-
copyLogo(Config_getString(DOCBOOK_OUTPUT));
12433-
}
12434-
if (generateRtf)
12435-
{
12436-
copyLogo(Config_getString(RTF_OUTPUT));
12437-
}
12438-
1243912439
if (generateHtml &&
1244012440
Config_getBool(GENERATE_HTMLHELP) &&
1244112441
!Config_getString(HHC_LOCATION).isEmpty())

src/htmlgen.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,7 @@ void HtmlGenerator::writeTabData()
10231023
mgr.copyResource("nav_f.lum",dname);
10241024
mgr.copyResource("bc_s.luma",dname);
10251025
mgr.copyResource("doxygen.svg",dname);
1026+
Doxygen::indexList->addImageFile("doxygen.svg");
10261027
mgr.copyResource("closed.luma",dname);
10271028
mgr.copyResource("open.luma",dname);
10281029
mgr.copyResource("bdwn.luma",dname);
@@ -1036,6 +1037,7 @@ void HtmlGenerator::writeTabData()
10361037
// img.save(dname+"/nav_g.png");
10371038
//}
10381039
mgr.copyResource("nav_g.png",dname);
1040+
Doxygen::indexList->addImageFile("nav_g.png");
10391041
}
10401042

10411043
void HtmlGenerator::writeSearchData(const QCString &dname)

0 commit comments

Comments
 (0)