mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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:
parent
b5589bf6cf
commit
06788449ec
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user