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

List:       kde-commits
Subject:    koffice/kword/part/frames
From:       Casper Boemann <cbr () boemann ! dk>
Date:       2010-07-21 22:36:04
Message-ID: 20100721223604.56BC4AC7E8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1152762 by boemann:

Do this a little bit better which doesn't break the unit test


 M  +2 -1      KWAnchorStrategy.cpp  


--- trunk/koffice/kword/part/frames/KWAnchorStrategy.cpp #1152761:1152762
@@ -190,7 +190,8 @@
         break;
     case KoTextAnchor::VerticalOffset: {
         qreal y;
-        if (block.length() == 2 && m_anchor->horizontalAlignment()!=KoTextAnchor::HorizontalOffset) {
+        if (block.length() == 2 && !m_anchor->isPositionedInline()) {
+            //m_anchor->horizontalAlignment()!=KoTextAnchor::HorizontalOffset) {
             // the anchor is the only thing in the block, and not inline
             y = state->y();
         } else if (layout->lineCount()) {
[prev in list] [next in list] [prev in thread] [next in thread] 

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