summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2017-10-06 09:01:51 +0000
committerKhaled Hosny <khaledhosny@eglug.org>2017-10-20 20:10:57 +0000
commite564b8bfdedb3655fe47f47996fdd778a0e75d7b (patch)
tree752ca91035747c81f0b394d4f48d36cb011a8ee0 /src/libnrtype
parentMerge branch 'smartpointer_refactor' of gitlab.com:jali/inkscape (diff)
downloadinkscape-e564b8bfdedb3655fe47f47996fdd778a0e75d7b.tar.gz
inkscape-e564b8bfdedb3655fe47f47996fdd778a0e75d7b.zip
Fix baseline shift movement direction
This was broke in 2abe0bb681044d972e171189395a2afdbc39bf28 when delta_y was applied in the opposite Y direction but baseline_shift was kept unchanged.
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) {