]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.C
* BufferParams:
[lyx.git] / src / insets / insetnote.C
index d0b9365c6713af05c9c433a3bc43774801406e8b..38250c38af6004c44fd9ff7cc6bf8c0430587b8e 100644 (file)
@@ -105,7 +105,7 @@ void InsetNoteParams::read(LyXLex & lex)
 {
        string label;
        lex >> label;
-       if (lex)
+       if (lex.isOK())
                type = notetranslator().find(label);
 }
 
@@ -290,6 +290,7 @@ int InsetNote::latex(Buffer const & buf, odocstream & os,
 
        docstring const str = ss.str();
        os << str;
+       runparams_in.encoding = runparams.encoding;
        // Return how many newlines we issued.
        return int(lyx::count(str.begin(), str.end(), '\n'));
 }