Move assertion at the right position

It would wrongly trigger when doing a multi-cell selection.
This commit is contained in:
Jean-Marc Lasgouttes 2024-09-19 23:17:48 +02:00
parent 92c7c33d9e
commit 77e4092b99

View File

@ -72,8 +72,8 @@ void Statistics::update(Text const & text)
void Statistics::update(CursorSlice const & from, CursorSlice & to) void Statistics::update(CursorSlice const & from, CursorSlice & to)
{ {
LASSERT(from.text() == to.text(), return);
if (from.idx() == to.idx()) { if (from.idx() == to.idx()) {
LASSERT(from.text() == to.text(), return);
if (from.pit() == to.pit()) { if (from.pit() == to.pit()) {
update(from.paragraph(), from.pos(), to.pos()); update(from.paragraph(), from.pos(), to.pos());
} else { } else {