mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Add a sanity check to prevent the crash noted in #7654.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39212 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6e68683dbf
commit
485cfe2b72
@ -1249,7 +1249,11 @@ void Text::acceptOrRejectChanges(Cursor & cur, ChangeOp op)
|
||||
|
||||
pos_type left = (pit == begPit ? begPos : 0);
|
||||
pos_type right = (pit == endPit ? endPos : parSize);
|
||||
|
||||
|
||||
if (left == right)
|
||||
// there is no change here
|
||||
continue;
|
||||
|
||||
if (op == ACCEPT) {
|
||||
pars_[pit].acceptChanges(left, right);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user