mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
Use Change::isSimilarTo to find a change when merging changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33284 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
76b4383571
commit
b7ff36304d
@ -405,14 +405,14 @@ bool findChange(BufferView * bv, bool next)
|
||||
if (next) {
|
||||
for (; !tip.at_end(); tip.forwardPos()) {
|
||||
Change change = tip.paragraph().lookupChange(tip.pos());
|
||||
if (change != orig_change)
|
||||
if (!change.isSimilarTo(orig_change))
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
for (; !tip.at_begin();) {
|
||||
tip.backwardPos();
|
||||
Change change = tip.paragraph().lookupChange(tip.pos());
|
||||
if (change != orig_change) {
|
||||
if (!change.isSimilarTo(orig_change)) {
|
||||
// take a step forward to correctly set the selection
|
||||
tip.forwardPos();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user