]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpecialChar.cpp
Fix conflicting inset font defaults (bug #8874)
[lyx.git] / src / insets / InsetSpecialChar.cpp
index 0099fc4e1ee750eaae4ff260b32d0cbfde0edc7a..f342d0f20d0ee24de9a2149da9e495e9b7c7ac0d 100644 (file)
@@ -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();
 }