[Libreoffice-commits] core.git: sw/source

Kohei Yoshida kohei.yoshida at collabora.com
Tue Mar 18 08:07:20 PDT 2014


 sw/source/core/layout/paintfrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 32391d25293935fbbf0075e3ccf68625951427f0
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Tue Mar 18 11:04:35 2014 -0400

    fdo#75260: Correct offset amount. Using the distance was not enough.
    
    Change-Id: Ie27e2c0785eaf8d2106c1fd60e9da112da048f38

diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 57d662d..e1f37f2 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -2797,7 +2797,7 @@ void calcOffsetForDoubleLine( SwLineEntryMap& rLines )
             for (size_t i = 0; itSet != itSetEnd; ++itSet, ++i)
             {
                 SwLineEntry aLine = *itSet;
-                aLine.mnOffset = static_cast<SwTwips>(aLine.maAttribute.Dist());
+                aLine.mnOffset = static_cast<SwTwips>(aLine.maAttribute.Prim()+aLine.maAttribute.Dist());
                 aLine.mbOffsetPerp = true;
 
                 if (i == 0)


More information about the Libreoffice-commits mailing list