From 9049809ac19f5b319471da7f89956bc826951b18 Mon Sep 17 00:00:00 2001 From: xavier Date: Sat, 4 Jun 2011 11:42:20 +0000 Subject: [PATCH] Fixed vertical alignment parsing for title block templates. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1293 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/titleblocktemplate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/titleblocktemplate.cpp b/sources/titleblocktemplate.cpp index f1fbc0058..87172333f 100644 --- a/sources/titleblocktemplate.cpp +++ b/sources/titleblocktemplate.cpp @@ -305,8 +305,8 @@ bool TitleBlockTemplate::loadCells(const QDomElement &xml_element) { else loaded_cell -> alignment |= Qt::AlignLeft; QString valignment = cell_element.attribute("valign", "center"); - if (halignment == "bottom") loaded_cell -> alignment |= Qt::AlignBottom; - else if (halignment == "top") loaded_cell -> alignment |= Qt::AlignTop; + if (valignment == "bottom") loaded_cell -> alignment |= Qt::AlignBottom; + else if (valignment == "top") loaded_cell -> alignment |= Qt::AlignTop; else loaded_cell -> alignment |= Qt::AlignVCenter; // horizontal text adjustment