]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Setup checboxes according to initial values from commandline.
[lyx.git] / src / Cursor.cpp
index c12d054ee79019c4bc73042cc20fc21d9cc40ee5..a2fb6b9420b80f636837b6474299b87d0cc80229 100644 (file)
@@ -254,8 +254,8 @@ bool bruteFind3(Cursor & cur, int x, int y, bool up)
 Cursor::Cursor(BufferView & bv)
        : DocIterator(&bv.buffer()), bv_(&bv), anchor_(),
          x_target_(-1), textTargetOffset_(0),
-         selection_(false), mark_(false), logicalpos_(false),
-         current_font(inherit_font)
+         selection_(false), mark_(false), word_selection_(false),
+         logicalpos_(false), current_font(inherit_font)
 {}
 
 
@@ -1059,6 +1059,7 @@ void Cursor::setSelection(DocIterator const & where, int n)
 void Cursor::clearSelection()
 {
        setSelection(false);
+       setWordSelection(false);
        setMark(false);
        resetAnchor();
 }