summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-02-02 13:58:56 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-02-02 13:58:56 (GMT)
commit4f63245be8494967bc0ecd711a705b9dc5c30960 (patch)
tree1786b29e320be8386541fa4f7a261b40198b3301 /tools
parenta915e0cd275c171b838ccf7105b4463fbc1042e0 (diff)
downloadQt-4f63245be8494967bc0ecd711a705b9dc5c30960.zip
Qt-4f63245be8494967bc0ecd711a705b9dc5c30960.tar.gz
Qt-4f63245be8494967bc0ecd711a705b9dc5c30960.tar.bz2
Fixed a bug that caused marked up inline text to be truncated.
Diffstat (limited to 'tools')
-rw-r--r--tools/qdoc3/cppcodemarker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qdoc3/cppcodemarker.cpp b/tools/qdoc3/cppcodemarker.cpp
index 9ad4d90..1b1e8f2 100644
--- a/tools/qdoc3/cppcodemarker.cpp
+++ b/tools/qdoc3/cppcodemarker.cpp
@@ -1085,7 +1085,7 @@ QString CppCodeMarker::addMarkUp(const QString &in,
}
QString text;
- if (tag.isEmpty() && i == code.length())
+ if ((tag.isEmpty() || second == 1) && i == code.length())
text = code.mid(second - 1, i - second + 1);
else
text = code.mid(second - 1, i - second);