mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
- 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:
parent
ef91176cbf
commit
3e82675c31
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user