]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/command_inset.C
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / command_inset.C
index 076dfd34b9a08e80471a16eee64cb5f6fc48398d..fcfa79d16a326288eff6da2e1787351dfa7c6ee0 100644 (file)
@@ -30,7 +30,7 @@ CommandInset::CommandInset(string const & name)
 }
 
 
-auto_ptr<InsetBase> CommandInset::clone() const
+auto_ptr<InsetBase> CommandInset::doClone() const
 {
        return auto_ptr<InsetBase>(new CommandInset(*this));
 }
@@ -47,6 +47,13 @@ void CommandInset::metrics(MetricsInfo & mi, Dimension & dim) const
 }
 
 
+InsetBase * CommandInset::editXY(LCursor & cur, int /*x*/, int /*y*/)
+{
+       edit(cur, true);
+       return this;
+}
+
+
 void CommandInset::draw(PainterInfo & pi, int x, int y) const
 {
        button_.draw(pi, x, y);