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
This commit is contained in:
xavier
2011-06-04 11:42:20 +00:00
parent 2144ced889
commit 9049809ac1

View File

@@ -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