Help generation: Bad images path when compiling doc for toolboxes 69/10169/1
Calixte DENIZET [Wed, 9 Jan 2013 16:08:14 +0000 (17:08 +0100)]
Change-Id: I4a4b38e52317060321b90e1f070273693c209cd6

scilab/modules/helptools/src/java/org/scilab/modules/helptools/JavaHelpDocbookTagConverter.java

index abbfb83..e4b2076 100644 (file)
@@ -46,7 +46,9 @@ public class JavaHelpDocbookTagConverter extends HTMLDocbookTagConverter {
      */
     public JavaHelpDocbookTagConverter(String inName, String outName, String[] primConf, String[] macroConf, String template, String version, String imageDir, boolean isToolbox, String urlBase, String language) throws IOException, SAXException {
         super(inName, outName, primConf, macroConf, template, version, imageDir, isToolbox, urlBase, language, HTMLDocbookTagConverter.GenerationType.JAVAHELP);
-        this.outImages = ScilabConstants.SCI.getPath() + "/modules/helptools/images";
+       if (!isToolbox) {
+           this.outImages = ScilabConstants.SCI.getPath() + "/modules/helptools/images";
+       }
         prependToProgramListing = "<table border=\"0\" width=\"100%\"><tr><td width=\"98%\">";
         appendToProgramListing = "</td><td valign=\"top\"><a href=\"scilab://scilab.execexample/\"><img src=\"" + getBaseImagePath() + "ScilabExecute.png\" border=\"0\"/></a></td><td valign=\"top\"><a href=\"scilab://scilab.editexample/\"><img src=\"" + getBaseImagePath() + "ScilabEdit.png\" border=\"0\"/></a></td><td></td></tr></table>";
         appendForExecToProgramListing = "</td><td valign=\"top\"><a href=\"scilab://scilab.execexample/\"><img src=\"" + getBaseImagePath() + "ScilabExecute.png\" border=\"0\"/></a></td><td></td></tr></table>";