mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
add an assertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16347 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5d356a862f
commit
ceda236931
@ -2450,6 +2450,7 @@ docstring LyXText::getPossibleLabel(LCursor & cur) const
|
||||
pos_type LyXText::x2pos(BufferView const & bv, pit_type pit, int row,
|
||||
int x) const
|
||||
{
|
||||
BOOST_ASSERT(!pars_[pit].rows().empty());
|
||||
BOOST_ASSERT(row < int(pars_[pit].rows().size()));
|
||||
bool bound = false;
|
||||
Row const & r = pars_[pit].rows()[row];
|
||||
|
Loading…
Reference in New Issue
Block a user