From 4f994a2ab9fcefd34a26e7f35b37bccd004ae7ee Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 27 Apr 2023 18:55:30 +0200 Subject: fix recently re-introduced bug (#3875) --- Source/ablastr/utils/text/StringUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/ablastr/utils/text/StringUtils.cpp') diff --git a/Source/ablastr/utils/text/StringUtils.cpp b/Source/ablastr/utils/text/StringUtils.cpp index 67a269bbb..7409fa7e7 100644 --- a/Source/ablastr/utils/text/StringUtils.cpp +++ b/Source/ablastr/utils/text/StringUtils.cpp @@ -39,7 +39,8 @@ ablastr::utils::text::automatic_text_wrap( } else{ wrapped_text_lines.push_back(ss_line_out.str()); - ss_line_out = std::stringstream{word}; + ss_line_out.str(""); + ss_line_out << word; counter = wlen; } } -- cgit v1.2.3