commit 77e4092b99e79c68edb055c006062de9f4420ceb
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Thu Sep 19 23:17:48 2024 +0200
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 {
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs