[qet] [1293] Fixed vertical alignment parsing for title block templates.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 1293
Author:   xavier
Date:     2011-06-04 13:42:20 +0200 (Sat, 04 Jun 2011)
Log Message:
-----------
Fixed vertical alignment parsing for title block templates.

Modified Paths:
--------------
    branches/0.3/sources/titleblocktemplate.cpp

Modified: branches/0.3/sources/titleblocktemplate.cpp
===================================================================
--- branches/0.3/sources/titleblocktemplate.cpp	2011-06-03 00:49:16 UTC (rev 1292)
+++ branches/0.3/sources/titleblocktemplate.cpp	2011-06-04 11:42:20 UTC (rev 1293)
@@ -305,8 +305,8 @@
 				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


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/