summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-08-05 10:58:39 (GMT)
committerVolker Hilsheimer <volker.hilsheimer@nokia.com>2009-08-05 10:58:59 (GMT)
commitf78bd88cbb8fd4c32e487eed716f089b6f5cfe28 (patch)
treefbc2d8aa17026e1120df35a4dafafa3b451dbf2b
parenta34ec3bf9d6077bdc62cb48e116751788996fd99 (diff)
downloadQt-f78bd88cbb8fd4c32e487eed716f089b6f5cfe28.zip
Qt-f78bd88cbb8fd4c32e487eed716f089b6f5cfe28.tar.gz
Qt-f78bd88cbb8fd4c32e487eed716f089b6f5cfe28.tar.bz2
Workaround a crash in qdoc.
Caused by an odd number of classes it seems.
-rw-r--r--tools/qdoc3/htmlgenerator.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/qdoc3/htmlgenerator.cpp b/tools/qdoc3/htmlgenerator.cpp
index 6b15f96..df63138 100644
--- a/tools/qdoc3/htmlgenerator.cpp
+++ b/tools/qdoc3/htmlgenerator.cpp
@@ -2097,6 +2097,11 @@ void HtmlGenerator::generateCompactList(const Node *relative,
currentOffsetInParagraph[i] = 0;
}
+ if (currentParagraphNo[i] >= NumParagraphs) {
+ qDebug() << "### Internal error ###" << __FILE__ << __LINE__;
+ currentParagraphNo[i] = NumParagraphs - 1;
+ }
+
out() << "<td align=\"right\">";
if (currentOffsetInParagraph[i] == 0) {
// start a new paragraph