mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Move assertion at the right position
It would wrongly trigger when doing a multi-cell selection.
This commit is contained in:
parent
92c7c33d9e
commit
77e4092b99
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user