[Libreoffice-commits] core.git: Branch 'feature/table_rotated_text' - editeng/source

Tamás Zolnai tamas.zolnai at collabora.com
Wed Apr 5 15:14:15 UTC 2017


 editeng/source/editeng/editeng.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit ac7c52c6809c0bc62f10e90cf5f6e26eee6ad35b
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date:   Wed Apr 5 16:45:34 2017 +0200

    Fix center aligned vertical text rendering
    
    Change-Id: If607084c9e738e7b0bc4283885f0700f4be4caff

diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx
index 55ad1b4f4361..f15f2d67b855 100644
--- a/editeng/source/editeng/editeng.cxx
+++ b/editeng/source/editeng/editeng.cxx
@@ -1787,6 +1787,11 @@ void EditEngine::StripPortions()
             aBigRect.Right() = 0;
             aBigRect.Left() = -0x7FFFFFFF;
         }
+        else
+        {
+            aBigRect.Top() = -0x7FFFFFFF;
+            aBigRect.Bottom() = 0;
+        }
     }
     pImpEditEngine->Paint( aTmpDev.get(), aBigRect, Point(), true );
 }


More information about the Libreoffice-commits mailing list