mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
Correctly initialize font (language) for multiple-cell paste (#11898)
(cherry picked from commit 2cee820f71
)
This commit is contained in:
parent
41ebc1f9ae
commit
b0c8dc54b4
@ -1092,7 +1092,10 @@ void copySelection(Cursor const & cur, docstring const & plaintext)
|
||||
par.setLayout(bp.documentClass().plainLayout());
|
||||
// Replace (column-separating) tabs by space (#4449)
|
||||
docstring const clean_text = subst(plaintext, '\t', ' ');
|
||||
par.insert(0, clean_text, Font(), Change(Change::UNCHANGED));
|
||||
// For pasting into text, we set the language to the paragraph language
|
||||
// (rather than the default_language which is always English; see #11898)
|
||||
par.insert(0, clean_text, Font(sane_font, par.getParLanguage(bp)),
|
||||
Change(Change::UNCHANGED));
|
||||
pars.push_back(par);
|
||||
theCuts.push(make_pair(pars, bp.documentClassPtr()));
|
||||
} else {
|
||||
|
@ -62,6 +62,8 @@ What's new
|
||||
|
||||
- Do not paste tabulators when pasting multiple cell outside table (bug 4449).
|
||||
|
||||
- Fix language when pasting multiple cell outside table (bug 11898).
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user