]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
Add perf comment
[lyx.git] / src / Cursor.h
index de2405692a9f70065dcadcaf04ef3ed50e1dd2b1..aa31f91c96b5592d951b8e649463213dc8ebd91f 100644 (file)
@@ -101,11 +101,6 @@ protected:
        bool mark_;
        /// are we in word-selection mode? This is set when double clicking.
        bool word_selection_;
-       /// If true, we are behind the previous char, otherwise we are in front
-       // of the next char. This only make a difference when we are in front
-       // of a big inset spanning a whole row and computing coordinates for
-       // displaying the cursor.
-       bool logicalpos_;
 
 // FIXME: make them protected.
 public:
@@ -166,8 +161,8 @@ public:
        //
        /// selection active?
        bool selection() const { return selection_; }
-       /// set selection;
-       void setSelection(bool sel) { selection_ = sel; }
+       /// set selection; this is lower level than (set|clear)Selection
+       void selection(bool sel) { selection_ = sel; }
        /// do we have a multicell selection?
        bool selIsMultiCell() const 
                { return selection_ && selBegin().idx() != selEnd().idx(); }