mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
fix crash when toggling change tracking off
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10421 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
742ff585a2
commit
5d0f08d856
@ -877,13 +877,13 @@ void BufferView::Pimpl::trackChanges()
|
||||
// We cannot allow undos beyond the freeze point
|
||||
buffer_->undostack().clear();
|
||||
} else {
|
||||
update();
|
||||
bv_->text()->setCursor(cursor_, 0, 0);
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning changes FIXME
|
||||
#endif
|
||||
cursor_.setCursor(doc_iterator_begin(buffer_->inset()));
|
||||
bool const found = lyx::find::findNextChange(bv_);
|
||||
if (found) {
|
||||
// We reset the cursor to the start of the
|
||||
// document, since the Changes Dialog is going
|
||||
// to search for the next change anyway.
|
||||
cursor_.setCursor(doc_iterator_begin(buffer_->inset()));
|
||||
owner_->getDialogs().show("changes");
|
||||
return;
|
||||
}
|
||||
|
@ -1,3 +1,11 @@
|
||||
2005-08-04 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||
|
||||
* lyxfind.C (findNextChange): tiny cleanup.
|
||||
|
||||
* BufferView_pimpl.C (trackChanges): avoid crash when stopping
|
||||
change tracking with the cursor in an inset; make sure the first
|
||||
change is not skipped.
|
||||
|
||||
2005-09-06 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
|
||||
* CutAndPaste.[Ch]: new methods dirtyTabularStack and
|
||||
|
@ -339,7 +339,7 @@ bool findNextChange(BufferView * bv)
|
||||
if (!bv->available())
|
||||
return false;
|
||||
|
||||
DocIterator cur = DocIterator(bv->cursor());
|
||||
DocIterator cur = bv->cursor();
|
||||
|
||||
if (!findChange(cur))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user