]> git.lyx.org Git - features.git/commitdiff
more selection stuff. It might be ok now...
authorAndré Pönitz <poenitz@gmx.net>
Thu, 29 Nov 2001 16:39:44 +0000 (16:39 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 29 Nov 2001 16:39:44 +0000 (16:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3116 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_cursor.C

index 6069d0debdd141cc383066248461b1bdfa0f1518..ce8795af0e32d551d8d8d0fe473c7994f8704545 100644 (file)
@@ -733,7 +733,7 @@ void MathCursor::selHandle(bool sel)
 {
        if (sel == selection_)
                return;
-       theSelection.clear();
+       //theSelection.clear();
        Anchor_    = Cursor_;
        selection_ = sel;
 }
@@ -742,7 +742,7 @@ void MathCursor::selHandle(bool sel)
 void MathCursor::selStart()
 {
        seldump("selStart");
-       theSelection.clear();
+       //theSelection.clear();
        Anchor_ = Cursor_;
        selection_ = true;
 }
@@ -1359,7 +1359,7 @@ bool MathCursor::interpret(char c)
        }
 
        if (selection_)
-               selDel();
+               selClear();
 
        if (lastcode_ == LM_TC_TEXTRM) {
                // suppress direct insertion of to spaces in a row