commit 62ad205dbf99cb0384f864fe6e3f4ebe52de3257
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Dec 15 11:19:18 2021 +0100
Avoid duplication of words on screen
When giving up splitting a word sequence because it is not enough to
make the row short enough, make sure to clean up properly.
---
src/Row.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/Row.cpp b/src/Row.cpp
index db52b05..6d6d319 100644
--- a/src/Row.cpp
+++ b/src/Row.cpp
@@ -585,6 +585,7 @@ Row::Elements Row::shortenIfNeeded(int const w, int const
next_width)
*/
if (wid_brk + cit_brk->dim.wid < w
&& dim_.wid - (wid_brk + brk.dim.wid) >=
next_width) {
+ tail.clear();
break;
}
end_ = brk.endpos;
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs