[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-07-28 8:04:02
Message-ID: 20100728080402.55E96AC7A9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1155939 by mkruisselbrink:

fix drawing of rotated text; don't set the linewidth to the width of the cell, but \
use a sort of infinite value

 M  +2 -1      CellView.cpp  


--- trunk/koffice/kspread/ui/CellView.cpp #1155938:1155939
@@ -1894,7 +1894,8 @@
     const QTextOption options = d->textOptions();
 
     const bool tmpVerticalText = d->style.verticalText();
-    const qreal lineWidth = tmpVerticalText ? fontMetrics.maxWidth() :
+    const bool tmpAngled = fixAngle(d->style.angle()) != 0;
+    const qreal lineWidth = tmpAngled ? 1e9 : tmpVerticalText ? \
fontMetrics.maxWidth() :  (d->width - 2 * s_borderSpace
                              - 0.5 * d->style.leftBorderPen().width()
                              - 0.5 * d->style.rightBorderPen().width());


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

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