mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
* 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:
parent
3b2dbce542
commit
f2f3ed23f0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user