From 779ded10d53efb0e4d2641ac4d0539b02a275afd Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Mon, 15 Apr 2019 11:27:04 +0200 Subject: Fix for line positioning in wrapped multi-line text. Bug introduced in 605ef4a43ea0cf89d19d46679e9e0b5bb9e464b2 which applied line correction to all types of text rather than just multi-line text via sodipodi:role = "line". --- src/libnrtype/Layout-TNG-Compute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/Layout-TNG-Compute.cpp b/src/libnrtype/Layout-TNG-Compute.cpp index f31fffa86..76a1e4708 100644 --- a/src/libnrtype/Layout-TNG-Compute.cpp +++ b/src/libnrtype/Layout-TNG-Compute.cpp @@ -1894,7 +1894,7 @@ bool Layout::Calculator::calculate() // know how to find the top of the box from the 'y' position until we have found the // line height parameters for the given line (after calling _findChunksForLine() just // above). - if (para.first_input_index == 0) { + if (para.first_input_index == 0 && (_flow.wrap_mode == WRAP_NONE)) { // Calculate new top of box... given specified baseline. double top_of_line_box = _scanline_maker->yCoordinate(); // Set in constructor. -- cgit v1.2.3