Fixbug 5280

http://bugzilla.lyx.org/show_bug.cgi?id=5280


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27244 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2008-11-03 22:59:07 +00:00
parent 33f0bb6ac3
commit 0681cb4e60

View File

@ -2050,8 +2050,10 @@ bool Paragraph::latex(BufferParams const & bparams,
if (!runparams.verbatim &&
runparams.encoding->package() != Encoding::none &&
font.language()->encoding()->package() != Encoding::none) {
pair<bool, int> const enc_switch = switchEncoding(os, bparams,
odocstringstream ods;
pair<bool, int> const enc_switch = switchEncoding(ods, bparams,
runparams, *(font.language()->encoding()));
os << ods.str();
if (enc_switch.first) {
column += enc_switch.second;
runparams.encoding = font.language()->encoding();