- coordOffset(): add an assertion on par.rows() emptiness before accessing it and a FIXME.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15876 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-11-12 11:03:55 +00:00
parent ef91176cbf
commit 3e82675c31

View File

@ -177,6 +177,8 @@ Point coordOffset(BufferView const & bv, DocIterator const & dit,
// Add contribution of initial rows of outermost paragraph
CursorSlice const & sl = dit[0];
Paragraph const & par = sl.text()->getPar(sl.pit());
// FIXME: I wonder if a case exists where this could happen:
BOOST_ASSERT(!par.rows().empty());
y -= par.rows()[0].ascent();
#if 1
size_t rend;