X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FRow.h;h=a3afad4c1164a3f646f36f0753e8615844561194;hb=3f7d2a66f522a45583e0a8b0ba734bb71f0ddde0;hp=ae8ed71fd1d73382e2f9d9eead7ed01eb51c6bb2;hpb=eb96d94ce7a3dddba58091fa23b4e1ed95477691;p=lyx.git diff --git a/src/Row.h b/src/Row.h index ae8ed71fd1..a3afad4c11 100644 --- a/src/Row.h +++ b/src/Row.h @@ -39,8 +39,12 @@ public: void setChanged(bool c) { changed_ = c; } /// void setCrc(size_type crc) const; - /// - void setSelection(pos_type sel_beg, pos_type sel_end); + /// Set the selection begin and end. + /** + * This is const because we update the selection status only at draw() + * time. + */ + void setSelection(pos_type sel_beg, pos_type sel_end) const; /// void pos(pos_type p); @@ -73,9 +77,9 @@ public: /// the x position of the row double x; /// - pos_type sel_beg; + mutable pos_type sel_beg; /// - pos_type sel_end; + mutable pos_type sel_end; private: /// has the Row appearance changed since last drawing? mutable bool changed_;