]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.C
avoid to update when navigating
[lyx.git] / src / cursor.C
index 0339843e9df8848161c45f034ba90204678cbeb5..f563141a2e3ae1228bb560cbb50add3544c7f77b 100644 (file)
@@ -326,7 +326,9 @@ void LCursor::setSelection()
 {
        selection() = true;
        // a selection with no contents is not a selection
+#ifdef WITH_WARNINGS
 #warning doesnt look ok
+#endif
        if (par() == anchor().par() && pos() == anchor().pos())
                selection() = false;
 }
@@ -384,12 +386,8 @@ void LCursor::info(std::ostream & os) const
 void LCursor::selHandle(bool sel)
 {
        //lyxerr << "LCursor::selHandle" << endl;
-       if (sel == selection()) {
-#warning Alfredo: This is too strong (Andre)
-               //if (!sel)
-               //      noUpdate();
+       if (sel == selection())
                return;
-       }
 
        resetAnchor();
        selection() = sel;