]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_cb.C
more cursor dispatch
[lyx.git] / src / lyx_cb.C
index d8c34ada01f61a9647b8259201e3b3229270cba5..48ac377406df0ff2497807cf0c895cde8df6fd44 100644 (file)
@@ -19,6 +19,7 @@
 #include "buffer.h"
 #include "bufferlist.h"
 #include "BufferView.h"
+#include "cursor.h"
 #include "debug.h"
 #include "gettext.h"
 #include "lastfiles.h"
@@ -358,7 +359,7 @@ void InsertAsciiFile(BufferView * bv, string const & f, bool asParagraph)
 
        // clear the selection
        if (bv->text() == bv->getLyXText())
-               bv->clearSelection();
+               bv->cursor().clearSelection();
        if (asParagraph)
                bv->getLyXText()->insertStringAsParagraphs(tmpstr);
        else