diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-05-03 16:38:16 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-05-03 17:27:00 -0300 |
commit | 8602ed0140f92884516b5e48ff685d6f90227980 (patch) | |
tree | 6d1ed7d20af2796facda76236d679283aab34d1a /generators | |
parent | 7384ec7a48990cdbf1a44d52e2d17ac62d429b76 (diff) |
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')
-rw-r--r-- | generators/qtdoc/qtdocgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generators/qtdoc/qtdocgenerator.cpp b/generators/qtdoc/qtdocgenerator.cpp index 2eb8e2bbb..4f3a37bf1 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 = '='; |