From 77e4092b99e79c68edb055c006062de9f4420ceb Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 19 Sep 2024 23:17:48 +0200 Subject: [PATCH] Move assertion at the right position It would wrongly trigger when doing a multi-cell selection. --- src/Statistics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Statistics.cpp b/src/Statistics.cpp index a2e7023155..31e4105895 100644 --- a/src/Statistics.cpp +++ b/src/Statistics.cpp @@ -72,8 +72,8 @@ void Statistics::update(Text const & text) void Statistics::update(CursorSlice const & from, CursorSlice & to) { - LASSERT(from.text() == to.text(), return); if (from.idx() == to.idx()) { + LASSERT(from.text() == to.text(), return); if (from.pit() == to.pit()) { update(from.paragraph(), from.pos(), to.pos()); } else {