qdoc: Removed "../" from paths to images
qdoc was mistakenly assuming that the output was going into subdirectories. The base dir variable was not being tested. Task nr: QTBUG-26638 Change-Id: I9b331926f8954b58102f75fad3f233eaebb2bb4d Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com>
This commit is contained in:
parent
6f580d6a5a
commit
7a64f2790e
@ -4222,6 +4222,7 @@ QString DitaXmlGenerator::getLink(const Atom* atom,
|
|||||||
the link must go up to the parent directory and then
|
the link must go up to the parent directory and then
|
||||||
back down into the other subdirectory.
|
back down into the other subdirectory.
|
||||||
*/
|
*/
|
||||||
|
if (!baseDir().isEmpty()) {
|
||||||
if (link.startsWith("images/")) {
|
if (link.startsWith("images/")) {
|
||||||
link.prepend(QString("../"));
|
link.prepend(QString("../"));
|
||||||
}
|
}
|
||||||
@ -4231,6 +4232,7 @@ QString DitaXmlGenerator::getLink(const Atom* atom,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!link.isEmpty() && link[0] == '#') {
|
if (!link.isEmpty() && link[0] == '#') {
|
||||||
link.prepend(outFileName());
|
link.prepend(outFileName());
|
||||||
}
|
}
|
||||||
|
@ -3823,6 +3823,7 @@ QString HtmlGenerator::getLink(const Atom *atom,
|
|||||||
the link must go up to the parent directory and then
|
the link must go up to the parent directory and then
|
||||||
back down into the other subdirectory.
|
back down into the other subdirectory.
|
||||||
*/
|
*/
|
||||||
|
if (!baseDir().isEmpty()) {
|
||||||
if (link.startsWith("images/")) {
|
if (link.startsWith("images/")) {
|
||||||
link.prepend(QString("../"));
|
link.prepend(QString("../"));
|
||||||
}
|
}
|
||||||
@ -3832,6 +3833,7 @@ QString HtmlGenerator::getLink(const Atom *atom,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return link;
|
return link;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user