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

(cherry picked from commit f49556b3ed)
This commit is contained in:
Richard Heck 2016-06-29 21:23:39 -04:00
parent fd0236414f
commit 88f6da78af
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -108,6 +108,9 @@ What's new
- Do not omit the first space of the selection when copying (bug 9995).
- Do not allow non-default layouts to be pasted into table cells that are not fixed
width (bug 8782).
- Display the correct column alignment and a better column spacing in AMS
environments (bugs 1861, 9908).