From e4f6db9ec254ece82c55f98767e361ad30b25182 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 28 Feb 2017 13:30:44 +0200 Subject: [PATCH] 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 Tested-by: Noel Grandin --- cppcanvas/source/mtfrenderer/textaction.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cppcanvas/source/mtfrenderer/textaction.cxx b/cppcanvas/source/mtfrenderer/textaction.cxx index eb95d3983ae9..51554a2e3595 100644 --- a/cppcanvas/source/mtfrenderer/textaction.cxx +++ b/cppcanvas/source/mtfrenderer/textaction.cxx @@ -39,7 +39,6 @@ #include #include - #include #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 );