diff options
| author | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-01-12 13:27:48 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-01-12 13:27:48 +0000 |
| commit | 5d49eb029043567f997bc347751678875ae130d2 (patch) | |
| tree | 960ca1898237afb2d54d815ecb4d034738fc7760 /src/libnrtype | |
| parent | Merge branch 'static_libs' of gitlab.com:Ede123/inkscape (diff) | |
| parent | Fix baseline shift movement direction (diff) | |
| download | inkscape-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.cpp | 2 |
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 ¶, // 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) { |
