Fix bug #8782: We need to query the cell, not just the inset.

This commit is contained in:
Richard Heck 2016-06-29 21:23:39 -04:00
parent 9fe0e9563f
commit f49556b3ed

View File

@ -160,7 +160,7 @@ pasteSelectionHelper(DocIterator const & cur, ParagraphList const & parlist,
// set the paragraphs to plain layout if necessary // set the paragraphs to plain layout if necessary
DocumentClassConstPtr newDocClass = buffer.params().documentClassPtr(); DocumentClassConstPtr newDocClass = buffer.params().documentClassPtr();
if (cur.inset().usePlainLayout()) { if (cur.inset().usePlainLayout()) {
bool forcePlainLayout = cur.inset().forcePlainLayout(); bool forcePlainLayout = target_inset->forcePlainLayout();
Layout const & plainLayout = newDocClass->plainLayout(); Layout const & plainLayout = newDocClass->plainLayout();
Layout const & defaultLayout = newDocClass->defaultLayout(); Layout const & defaultLayout = newDocClass->defaultLayout();
ParagraphList::iterator const end = insertion.end(); ParagraphList::iterator const end = insertion.end();