X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FRow.h;h=a3afad4c1164a3f646f36f0753e8615844561194;hb=a49c4e3454e428eeb0f2678eb9db3d086b2b789c;hp=cb25a4dcd99f17608fad48271527f2b71c6f427f;hpb=926abae7536ad564072163057bf8a95758d0be27;p=lyx.git diff --git a/src/Row.h b/src/Row.h index cb25a4dcd9..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); @@ -68,16 +72,14 @@ public: /// width of a separator (i.e. space) double separator; - /// width of hfills in the body - double hfill; /// width of hfills in the label double label_hfill; /// 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_;