]> 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 b38f46115a053813f40fb44887e49f10cc337938..fcfa79d16a326288eff6da2e1787351dfa7c6ee0 100644 (file)
@@ -16,7 +16,7 @@
 #include "dispatchresult.h"
 #include "funcrequest.h"
 
-#include "support/std_sstream.h"
+#include <sstream>
 
 using std::string;
 using std::auto_ptr;
@@ -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);