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:
Abdelrazak Younes 2006-12-20 14:15:26 +00:00
parent 5d356a862f
commit ceda236931

View File

@ -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];