mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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.
This commit is contained in:
parent
cb4715d739
commit
62ad205dbf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user