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/object/sp-text.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/object/sp-text.cpp') diff --git a/src/object/sp-text.cpp b/src/object/sp-text.cpp index cb9e5c3f3..49052d92c 100644 --- a/src/object/sp-text.cpp +++ b/src/object/sp-text.cpp @@ -570,6 +570,11 @@ void SPText::_buildLayoutInit() layout.appendWrapShape( uncross ); delete shape; + + } else if (style->white_space.value == SP_CSS_WHITE_SPACE_PRE || + style->white_space.value == SP_CSS_WHITE_SPACE_PREWRAP || + style->white_space.value == SP_CSS_WHITE_SPACE_PRELINE ) { + layout.wrap_mode = Inkscape::Text::Layout::WRAP_WHITE_SPACE; } } // if (style) -- cgit v1.2.3