]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetVSpace.cpp
Fix problem with static error list.
[lyx.git] / src / insets / InsetVSpace.cpp
index a43b122052888383dcf114a5f7dd3123d055cce6..057435eedaf437e77395bedf8c182443553b4fbb 100644 (file)
@@ -58,6 +58,7 @@ void InsetVSpace::doDispatch(Cursor & cur, FuncRequest & cmd)
        switch (cmd.action()) {
 
        case LFUN_INSET_MODIFY: {
+               cur.recordUndo();
                InsetVSpace::string2params(to_utf8(cmd.argument()), space_);
                break;
        }
@@ -200,10 +201,9 @@ void InsetVSpace::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-int InsetVSpace::latex(odocstream & os, OutputParams const &) const
+void InsetVSpace::latex(otexstream & os, OutputParams const &) const
 {
        os << from_ascii(space_.asLatexCommand(buffer().params())) << '\n';
-       return 1;
 }
 
 
@@ -232,7 +232,7 @@ docstring InsetVSpace::xhtml(XHTMLStream &, OutputParams const &) const
 }
 
 
-docstring InsetVSpace::contextMenu(BufferView const &, int, int) const
+docstring InsetVSpace::contextMenuName() const
 {
        return from_ascii("context-vspace");
 }