diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2011-04-29 16:54:16 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2011-06-14 09:09:15 (GMT) |
commit | 82f32ef0e4e744276a011e30ce99aafa341ea816 (patch) | |
tree | 89ffd161f3f091de99884f13131f3a3b74e26235 /src | |
parent | 524dc28aa9172964622fe1764d1cc97a457b6ed3 (diff) | |
download | Qt-82f32ef0e4e744276a011e30ce99aafa341ea816.zip Qt-82f32ef0e4e744276a011e30ce99aafa341ea816.tar.gz Qt-82f32ef0e4e744276a011e30ce99aafa341ea816.tar.bz2 |
Fix alignment value not handled in ODF
We're currently getting this error:
src/gui/text/qtextodfwriter.cpp:592:16: error: enumeration value 'AlignBaseline' not handled in switch [-Werror=switch]
Solve by making AlignBaseline operate like AlignNormal.
Patch suggested by: Thomas Zander
Reviewed-By: Thiago Macieira
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/text/qtextodfwriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextodfwriter.cpp b/src/gui/text/qtextodfwriter.cpp index 1619c9c..2addc0f 100644 --- a/src/gui/text/qtextodfwriter.cpp +++ b/src/gui/text/qtextodfwriter.cpp @@ -591,6 +591,7 @@ void QTextOdfWriter::writeCharacterFormat(QXmlStreamWriter &writer, QTextCharFor QString value; switch (format.verticalAlignment()) { case QTextCharFormat::AlignMiddle: + case QTextCharFormat::AlignBaseline: case QTextCharFormat::AlignNormal: value = QString::fromLatin1("0%"); break; case QTextCharFormat::AlignSuperScript: value = QString::fromLatin1("super"); break; case QTextCharFormat::AlignSubScript: value = QString::fromLatin1("sub"); break; |