X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetSpecialChar.cpp;h=f342d0f20d0ee24de9a2149da9e495e9b7c7ac0d;hb=6b49b6b129af9417fea7ea907a44a46fbbd38340;hp=0099fc4e1ee750eaae4ff260b32d0cbfde0edc7a;hpb=75fb3e4b6cf47cde6e466220e0c8d307bf5512b4;p=lyx.git diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp index 0099fc4e1e..f342d0f20d 100644 --- a/src/insets/InsetSpecialChar.cpp +++ b/src/insets/InsetSpecialChar.cpp @@ -239,7 +239,8 @@ void InsetSpecialChar::latex(otexstream & os, } -int InsetSpecialChar::plaintext(odocstream & os, OutputParams const &) const +int InsetSpecialChar::plaintext(odocstringstream & os, + OutputParams const &, size_t) const { switch (kind_) { case HYPHENATION: @@ -329,8 +330,11 @@ void InsetSpecialChar::toString(odocstream & os) const // Spell checker would choke on it. return; default: - plaintext(os, OutputParams(0)); + break; } + odocstringstream ods; + plaintext(ods, OutputParams(0)); + os << ods.str(); }