]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetQuotes.cpp
fix a crash when the inset containing the new word at cursor is deleted
[lyx.git] / src / insets / InsetQuotes.cpp
index 0c272ffb098fa7f69c20a0c527419697e8428495..ff7c6babd10ddcf923d70e738d51ed034f0fa645 100644 (file)
@@ -261,7 +261,7 @@ void InsetQuotes::read(Lexer & lex)
 }
 
 
-int InsetQuotes::latex(odocstream & os, OutputParams const & runparams) const
+int InsetQuotes::latex(otexstream & os, OutputParams const & runparams) const
 {
        const int quoteind = quote_index[side_][language_];
        string qstr;
@@ -333,6 +333,12 @@ void InsetQuotes::toString(odocstream & os) const
 }
 
 
+void InsetQuotes::forToc(docstring & os, size_t) const
+{
+       os += displayString();
+}
+
+
 void InsetQuotes::validate(LaTeXFeatures & features) const
 {
        bool const use_babel = features.useBabel();