diff --git a/src/text.C b/src/text.C index a0a3c05f83..d0fda985ac 100644 --- a/src/text.C +++ b/src/text.C @@ -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];