]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetnote.C
* BufferParams:
[lyx.git] / src / insets / insetnote.C
index d1a575639d132f373aef2c5960ccf7475407afd0..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'));
 }
@@ -311,7 +312,7 @@ int InsetNote::plaintext(Buffer const & buf, odocstream & os,
        InsetText::plaintext(buf, os, runparams);
        os << "\n]";
 
-       return 1 + runparams.linelen; // one char on a separate line
+       return PLAINTEXT_NEWLINE + 1; // one char on a separate line
 }