summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorMarc Jeanmougin <marcjeanmougin@free.fr>2018-01-12 13:27:48 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-01-12 13:27:48 +0000
commit5d49eb029043567f997bc347751678875ae130d2 (patch)
tree960ca1898237afb2d54d815ecb4d034738fc7760 /src/libnrtype
parentMerge branch 'static_libs' of gitlab.com:Ede123/inkscape (diff)
parentFix baseline shift movement direction (diff)
downloadinkscape-5d49eb029043567f997bc347751678875ae130d2.tar.gz
inkscape-5d49eb029043567f997bc347751678875ae130d2.zip
Merge branch 'baseline-shift' of gitlab.com:khaledhosny/inkscape
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 eca795994..dfbb84793 100644
--- a/src/libnrtype/Layout-TNG-Compute.cpp
+++ b/src/libnrtype/Layout-TNG-Compute.cpp
@@ -779,7 +779,7 @@ void Layout::Calculator::_outputLine(ParagraphInfo const &para,
// y-coordinate is flipped between vertical and horizontal text...
// delta_y is common offset but applied with opposite sign
double delta_x = unbroken_span_glyph_info->geometry.x_offset * font_size_multiplier;
- double delta_y = unbroken_span_glyph_info->geometry.y_offset * font_size_multiplier + unbroken_span.baseline_shift;
+ double delta_y = unbroken_span_glyph_info->geometry.y_offset * font_size_multiplier - unbroken_span.baseline_shift;
SPCSSBaseline dominant_baseline = _flow._blockBaseline();
if (_block_progression == LEFT_TO_RIGHT || _block_progression == RIGHT_TO_LEFT) {