]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetScript.cpp
#7379 avoid the wrap spell check question when buffer is empty
[lyx.git] / src / insets / InsetScript.cpp
index 9e729d5790eda42cf5b8a87f8a5fb4835c53a431..b85b36ee13d8e32f476ccdedd431b66ddc494788 100644 (file)
@@ -334,7 +334,7 @@ void InsetScript::validate(LaTeXFeatures & features) const
 }
 
 
-int InsetScript::latex(odocstream & os, OutputParams const & runparams) const
+void InsetScript::latex(otexstream & os, OutputParams const & runparams) const
 {
        switch (params_.type) {
        case InsetScriptParams::Subscript:
@@ -344,10 +344,8 @@ int InsetScript::latex(odocstream & os, OutputParams const & runparams) const
                os << "\\textsuperscript{";
                break;
        }
-       int const i = InsetText::latex(os, runparams);
+       InsetText::latex(os, runparams);
        os << "}";
-
-       return i;
 }