mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Fix bug 6055: change-next does not work in tables
The problem was just the faulty use of CursorSlice::at_begin/end(), which does not look for end of cell, but end of inset.
This commit is contained in:
parent
1b32a0502e
commit
68202fdf44
@ -456,13 +456,13 @@ bool findChange(BufferView * bv, bool next)
|
||||
Change orig_change = tip.paragraph().lookupChange(tip.pos());
|
||||
|
||||
if (next) {
|
||||
for (; !tip.at_end(); tip.forwardPos()) {
|
||||
for (; tip.pit() < tip.lastpit() || tip.pos() < tip.lastpos(); tip.forwardPos()) {
|
||||
Change change = tip.paragraph().lookupChange(tip.pos());
|
||||
if (!change.isSimilarTo(orig_change))
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
for (; !tip.at_begin();) {
|
||||
for (; tip.pit() > 0 || tip.pos() > 0;) {
|
||||
tip.backwardPos();
|
||||
Change change = tip.paragraph().lookupChange(tip.pos());
|
||||
if (!change.isSimilarTo(orig_change)) {
|
||||
|
Loading…
Reference in New Issue
Block a user