]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.C
* src/frontends/qt4/QTocDialog.C (updateGui):
[lyx.git] / src / cursor.C
index 6dbd777be726e1f66d56696bc4690fe1c4453ee4..e9c4d753494781bc4ac1c11b5bdc5942eb3c74b9 100644 (file)
@@ -41,6 +41,8 @@
 #include "mathed/InsetMathScript.h"
 #include "mathed/MathMacroTable.h"
 
+#include "frontends/Selection.h"
+
 #include "support/limited_stack.h"
 
 #include <boost/assert.hpp>
@@ -558,6 +560,7 @@ bool LCursor::selHandle(bool sel)
 
        resetAnchor();
        selection() = sel;
+       theSelection().haveSelection(sel);
        return true;
 }
 
@@ -765,7 +768,7 @@ bool LCursor::backspace()
        autocorrect() = false;
 
        if (selection()) {
-               cap::selDel(*this);
+               cap::eraseSelection(*this);
                return true;
        }
 
@@ -817,7 +820,7 @@ bool LCursor::erase()
                return true;
 
        if (selection()) {
-               cap::selDel(*this);
+               cap::eraseSelection(*this);
                return true;
        }