diff options
-rw-r--r-- | platform/default/bidi.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/default/bidi.cpp b/platform/default/bidi.cpp index 64baddaa5b..08a02ee60f 100644 --- a/platform/default/bidi.cpp +++ b/platform/default/bidi.cpp @@ -74,6 +74,8 @@ std::vector<std::u16string> BiDi::applyLineBreaking(std::set<std::size_t> lineBr mergeParagraphLineBreaks(lineBreakPoints); std::vector<std::u16string> transformedLines; + transformedLines.reserve(lineBreakPoints.size()); + std::size_t start = 0; for (std::size_t lineBreakPoint : lineBreakPoints) { transformedLines.push_back(getLine(start, lineBreakPoint)); |