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

List:       kde-commits
Subject:    koffice/kspread/ui
From:       Marijn Kruisselbrink <m.kruisselbrink () student ! tue ! nl>
Date:       2010-09-22 10:48:22
Message-ID: 20100922104822.EBAE9AC891 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1178190 by mkruisselbrink:

take textX into account to support center/right aligned rotated text

 M  +2 -2      CellView.cpp  


--- trunk/koffice/kspread/ui/CellView.cpp #1178189:1178190
@@ -1085,9 +1085,9 @@
         painter.rotate(tmpAngle);
         qreal x;
         if (tmpAngle > 0)
-            x = indent + coordinate.x();
+            x = indent + d->textX + coordinate.x();
         else
-            x = indent + coordinate.x()
+            x = indent + d->textX + coordinate.x()
                 - (fontMetrics.descent() + fontMetrics.ascent()) * ::sin(tmpAngle * M_PI / 180);
         qreal y;
         if (tmpAngle > 0)
[prev in list] [next in list] [prev in thread] [next in thread] 

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