* InsetTabular.cpp: do not attempt to access an empty DocIterator (bug 6810).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35148 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2010-08-14 14:32:52 +00:00
parent 3b2dbce542
commit f2f3ed23f0

View File

@ -523,11 +523,11 @@ InsetTableCell splitCell(InsetTableCell & head, docstring const align_d, bool &
pit_type const psize = head.paragraphs().front().size();
hassep = dit;
if (hassep)
if (hassep) {
head.paragraphs().front().eraseChars(dit.pos(), psize, false);
tail.paragraphs().front().eraseChars(0,
dit.pos() < psize ? dit.pos() + 1 : psize, false);
tail.paragraphs().front().eraseChars(0,
dit.pos() < psize ? dit.pos() + 1 : psize, false);
}
return tail;
}