summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-09-26 11:22:42 +0000
committerTavmjong Bah <tavmjong@free.fr>2017-09-26 11:22:42 +0000
commit342812bdbc6b67ab096c6e9c55bf5370163a2863 (patch)
tree4fef755992b0b0deb3b443e8a28d783e1c6909af /src/libnrtype
parentCSS fixes to measure line LPE (diff)
downloadinkscape-342812bdbc6b67ab096c6e9c55bf5370163a2863.tar.gz
inkscape-342812bdbc6b67ab096c6e9c55bf5370163a2863.zip
Fix error when vertical text has 'text-orientation' value 'sideways'.
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/Layout-TNG-Compute.cpp2
1 files changed, 1 insertions, 1 deletions
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 {