From 80bb3af4a727e24082dce70ecbbd57b3504fe5c8 Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Sat, 25 Apr 2020 13:30:35 +0200 Subject: [PATCH] Quick for 'inline-size' editting bug (entering a 'new-line' results in splitting text element). --- src/ui/tools/text-tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/tools/text-tool.cpp b/src/ui/tools/text-tool.cpp index 1b243e4fb9..7b75b2b807 100644 --- a/src/ui/tools/text-tool.cpp +++ b/src/ui/tools/text-tool.cpp @@ -906,7 +906,7 @@ bool TextTool::root_handler(GdkEvent* event) { } SPText* text_element = dynamic_cast(text); - if (text_element && (text_element->has_shape_inside() /*|| text_element->has_inline_size()*/)) { + if (text_element && (text_element->has_shape_inside() || text_element->has_inline_size())) { // Handle new line like any other character. this->text_sel_start = this->text_sel_end = sp_te_insert(this->text, this->text_sel_start, "\n"); } else { -- GitLab