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

Noel Grandin noel.grandin at collabora.co.uk
Tue Feb 28 12:21:59 UTC 2017


 cppcanvas/source/mtfrenderer/textaction.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit e4f6db9ec254ece82c55f98767e361ad30b25182
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Tue Feb 28 13:30:44 2017 +0200

    FontDescription.IsVertical is a tristate
    
    found by still in progress "UNO scoped enum" change
    
    Change-Id: I0a21b89e77be165bc96e914017a402cf8724d218
    Reviewed-on: https://gerrit.libreoffice.org/34719
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx b/cppcanvas/source/mtfrenderer/textaction.cxx
index eb95d39..51554a2 100644
--- a/cppcanvas/source/mtfrenderer/textaction.cxx
+++ b/cppcanvas/source/mtfrenderer/textaction.cxx
@@ -39,7 +39,6 @@
 
 #include <basegfx/tools/canvastools.hxx>
 #include <canvas/canvastools.hxx>
-
 #include <memory>
 
 #include "textaction.hxx"
@@ -331,7 +330,7 @@ namespace cppcanvas
                 if( rSubset.mnSubsetBegin > 0 )
                 {
                     ::basegfx::B2DHomMatrix aTranslation;
-                    if( rOrigTextLayout->getFont()->getFontRequest().FontDescription.IsVertical )
+                    if( rOrigTextLayout->getFont()->getFontRequest().FontDescription.IsVertical == css::util::TriState_YES )
                     {
                         // vertical text -> offset in y direction
                         aTranslation.translate( 0.0, nMinPos );


More information about the Libreoffice-commits mailing list