mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
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:
parent
7e4c025484
commit
4424d10669
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user