mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
update assertion.
This commit is contained in:
parent
41ddac5519
commit
7af1a065e8
@ -925,8 +925,8 @@ bool canInsertChar(Cursor const & cur, char_type c)
|
||||
"beginning of a paragraph. Please read the Tutorial."));
|
||||
return false;
|
||||
}
|
||||
// LASSERT: Is it safe to continue here?
|
||||
LASSERT(cur.pos() > 0, /**/);
|
||||
// If something is wrong, ignore this character.
|
||||
LASSERT(cur.pos() > 0, return false);
|
||||
if ((par.isLineSeparator(cur.pos() - 1) || par.isNewline(cur.pos() - 1))
|
||||
&& !par.isDeleted(cur.pos() - 1)) {
|
||||
cur.message(_(
|
||||
|
Loading…
Reference in New Issue
Block a user