enable Goto error (bug 1760)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9464 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2005-01-11 13:22:42 +00:00
parent b5589bf6cf
commit 06788449ec
2 changed files with 10 additions and 8 deletions

View File

@ -1,3 +1,8 @@
2005-01-10 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* ControlErrorList.C (goTo): fix the commented-out code (bug
1760).
2005-01-10 Angus Leeming <leeming@lyx.org>
* ControlAboutlyx.C:

View File

@ -69,17 +69,14 @@ void ControlErrorList::goTo(int item)
}
// Now make the selection.
#ifdef WITH_WARNINGS
#warning FIXME (goto error)
#warning This should be implemented using an LFUN. (Angus)
#endif
#if 0
// This should be implemented using an LFUN. (Angus)
pos_type const end = std::min(err.pos_end, pit->size());
pos_type const start = std::min(err.pos_start, end);
pos_type const range = end - start;
PosIterator const pos(pit, start);
kernel().bufferview()->putSelectionAt(pos, range, false);
#endif
DocIterator const dit = makeDocIterator(pit, start);
kernel().bufferview()->putSelectionAt(dit, range, false);
// If we used an LFUN, we would not need that
kernel().bufferview()->update();
}
} // namespace frontend