Compare: Actually abort the process when cancel is pressed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33020 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-01-14 00:56:55 +00:00
parent 326ab92c21
commit aa2fac50eb

View File

@ -651,6 +651,8 @@ int Compare::Impl::findMiddleSnake(DocRangePair const & rp,
return 2 * D - odd_offset_;
}
}
if (abort_)
return 0;
}
}
}
@ -695,6 +697,9 @@ bool Compare::Impl::diff(Buffer const * new_buf, Buffer const * old_buf,
void Compare::Impl::diff_i(DocRangePair const & rp)
{
if (abort_)
return;
// The middle snake
DocPair middle_snake;