summaryrefslogtreecommitdiff
path: root/src/qdoc/xmlgenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/xmlgenerator.cpp')
-rw-r--r--src/qdoc/xmlgenerator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qdoc/xmlgenerator.cpp b/src/qdoc/xmlgenerator.cpp
index ffffc283a..734b171a3 100644
--- a/src/qdoc/xmlgenerator.cpp
+++ b/src/qdoc/xmlgenerator.cpp
@@ -378,6 +378,10 @@ QString XmlGenerator::linkForNode(const Node *node, const Node *relative)
QString XmlGenerator::getLink(const Atom *atom, const Node *relative, const Node **node)
{
const QString &t = atom->string();
+
+ if (t.isEmpty())
+ return t;
+
if (t.at(0) == QChar('h')) {
if (t.startsWith("http:") || t.startsWith("https:"))
return t;