fix crash when inserting text insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8199 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-12-05 08:33:38 +00:00
parent 7e4c025484
commit 4424d10669

View File

@ -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);