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.
(cherry picked from commit 68202fdf44)
This commit is contained in:
Jean-Marc Lasgouttes 2013-05-06 12:15:27 +02:00 committed by Richard Heck
parent aba0b41fdc
commit a5cab01a9f
2 changed files with 4 additions and 2 deletions

View File

@ -450,13 +450,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)) {

View File

@ -96,6 +96,8 @@ What's new
- Fix problem with numbering of some child documents when instant preview
is active (bug 8673).
- Made change-next work properly in tables (bug 6055).
* DOCUMENTATION AND LOCALIZATION