aboutsummaryrefslogtreecommitdiff
path: root/Source/ablastr/utils/text/StringUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Source/ablastr/utils/text/StringUtils.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}
}