[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bcalligra=5D_libs/kotext=3A_Fix_support_for_valignme?=
From:       Pierre Ducroquet <pinaraf () pinaraf ! info>
Date:       2011-04-18 19:52:38
Message-ID: 20110418195238.CA53FA60A9 () git ! kde ! org
[Download RAW message or body]

Git commit 378ba771e5ae9824f2e9150fc297da0a709eebc6 by Pierre Ducroquet.
Committed on 18/04/2011 at 21:52.
Pushed by ducroquet into branch 'master'.

Fix support for valignment

M  +2    -2    libs/kotext/KoText.cpp     

http://commits.kde.org/calligra/378ba771e5ae9824f2e9150fc297da0a709eebc6

diff --git a/libs/kotext/KoText.cpp b/libs/kotext/KoText.cpp
index 7bd86ee..88a4ea5 100644
--- a/libs/kotext/KoText.cpp
+++ b/libs/kotext/KoText.cpp
@@ -107,7 +107,7 @@ Qt::Alignment KoText::valignmentFromString(const QString &align)
     Qt::Alignment alignment = Qt::AlignTop;
     if (align == "top")
         alignment = Qt::AlignTop;
-    else if (align == "center")
+    else if (align == "middle")
         alignment = Qt::AlignVCenter;
     else if (align == "bottom")
         alignment = Qt::AlignBottom;
@@ -120,7 +120,7 @@ QString KoText::valignmentToString(Qt::Alignment alignment)
     if (alignment == (Qt::AlignTop))
         align = "top";
     else if (alignment == Qt::AlignVCenter)
-        align = "center";
+        align = "middle";
     else if (alignment == Qt::AlignBottom)
         align = "bottom";
     return align;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic