From f2f3ed23f0e4d6a0b7ebaf0e0a04f498c3575b9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 14 Aug 2010 14:32:52 +0000 Subject: [PATCH] * 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 --- src/insets/InsetTabular.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 806d8256f2..c99b29f6c6 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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; } -- 2.39.5