From: Jean-Marc Lasgouttes Date: Thu, 19 Sep 2024 21:17:48 +0000 (+0200) Subject: Move assertion at the right position X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=77e4092b99e79c68edb055c006062de9f4420ceb;p=lyx.git Move assertion at the right position It would wrongly trigger when doing a multi-cell selection. --- 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 {