From 4424d10669541997b7c2c33b03601457692af078 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 5 Dec 2003 08:33:38 +0000 Subject: [PATCH] fix crash when inserting text insets git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8199 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/iterators.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iterators.C b/src/iterators.C index f2e323aa72..e5e8633e1e 100644 --- a/src/iterators.C +++ b/src/iterators.C @@ -288,7 +288,7 @@ ParConstIterator & ParConstIterator::operator++() // Try to find the next inset that contains paragraphs InsetList::iterator end = p.pit->insetlist.end(); for (; *p.it != end; ++(*p.it)) { - if (LyXText * text = (*p.it)->inset->getText(*p.index)) { + if (LyXText * text = (*p.it)->inset->getText(0)) { ParagraphList & plist = text->paragraphs(); if (!plist.empty()) { p.index.reset(0); -- 2.39.2