From 342812bdbc6b67ab096c6e9c55bf5370163a2863 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Tue, 26 Sep 2017 13:22:42 +0200 Subject: Fix error when vertical text has 'text-orientation' value 'sideways'. --- src/libnrtype/Layout-TNG-Compute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libnrtype/Layout-TNG-Compute.cpp b/src/libnrtype/Layout-TNG-Compute.cpp index 7826faf0d..eca795994 100644 --- a/src/libnrtype/Layout-TNG-Compute.cpp +++ b/src/libnrtype/Layout-TNG-Compute.cpp @@ -1787,7 +1787,7 @@ bool Layout::Calculator::calculate() // Vertical text, CJK pango_context_set_base_gravity(_pango_context, PANGO_GRAVITY_EAST); - if( _flow._blockTextOrientation() != SP_CSS_TEXT_ORIENTATION_MIXED ) { + if( _flow._blockTextOrientation() == SP_CSS_TEXT_ORIENTATION_UPRIGHT ) { pango_context_set_gravity_hint(_pango_context, PANGO_GRAVITY_HINT_STRONG); } } else { -- cgit v1.2.3