X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetlatex.C;h=38175672a3d622c6d279a7d054c341b70cdfc86f;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=590086a8dcab69604d1c7da959d7dedaed738106;hpb=188833d864794c9c1ec42a8361b93aaa718874ea;p=lyx.git diff --git a/src/insets/insetlatex.C b/src/insets/insetlatex.C index 590086a8dc..38175672a3 100644 --- a/src/insets/insetlatex.C +++ b/src/insets/insetlatex.C @@ -92,14 +92,21 @@ void InsetLatex::Read(LyXLex & lex) } -int InsetLatex::Latex(FILE * file, signed char /*fragile*/) +int InsetLatex::Latex(FILE * file, signed char /*fragile*/, bool /*fs*/) { fprintf(file, "%s", contents.c_str()); return 0; } -int InsetLatex::Latex(string & file, signed char /*fragile*/) +int InsetLatex::Latex(string & file, signed char /*fragile*/, bool /*fs*/) +{ + file += contents; + return 0; +} + + +int InsetLatex::Ascii(string & file) { file += contents; return 0; @@ -126,7 +133,7 @@ bool InsetLatex::Deletable() const } -Inset * InsetLatex::Clone() +InsetLatex * InsetLatex::Clone() const { InsetLatex * result = new InsetLatex(contents); return result;