summaryrefslogtreecommitdiffstats
path: root/generators/qtdoc
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-05-03 16:38:16 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-05-03 17:27:00 -0300
commit8602ed0140f92884516b5e48ff685d6f90227980 (patch)
tree6d1ed7d20af2796facda76236d679283aab34d1a /generators/qtdoc
parent7384ec7a48990cdbf1a44d52e2d17ac62d429b76 (diff)
downloadgeneratorrunner-8602ed0140f92884516b5e48ff685d6f90227980.tar.gz
generatorrunner-8602ed0140f92884516b5e48ff685d6f90227980.tar.xz
generatorrunner-8602ed0140f92884516b5e48ff685d6f90227980.zip
Do not crash when the given table is wrong.
Reviewer: Bruno Araújo <bruno.araujo@openbossa.org> Reviewer: Renato Araújo <renato.araujo@openbossa.org>
Diffstat (limited to 'generators/qtdoc')
-rw-r--r--generators/qtdoc/qtdocgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generators/qtdoc/qtdocgenerator.cpp b/generators/qtdoc/qtdocgenerator.cpp
index 2eb8e2b..4f3a37b 100644
--- a/generators/qtdoc/qtdocgenerator.cpp
+++ b/generators/qtdoc/qtdocgenerator.cpp
@@ -769,7 +769,7 @@ QTextStream& operator<<(QTextStream& s, const QtXmlToSphinx::Table &table)
s << INDENT << '+';
for (int col = 0, max = colWidths.count(); col < max; ++col) {
char c;
- if (row[col].rowSpan == -1)
+ if (col >= row.length() || row[col].rowSpan == -1)
c = ' ';
else if (i == 1 && table.hasHeader())
c = '=';