]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSideset.h
Fix assertion when checking if change in selection
[lyx.git] / src / mathed / InsetMathSideset.h
index e1b70df2951e1178d467ab8eecb486619ef8bc47..b99e6308d9cd490b1c27578efae0b19d77e44fa6 100644 (file)
@@ -46,10 +46,8 @@ public:
        bool idxForward(Cursor & cur) const;
        /// move cursor up or down
        bool idxUpDown(Cursor & cur, bool up) const;
-       /// Target pos when we enter the inset while moving forward
-       bool idxFirst(Cursor & cur) const;
-       /// Target pos when we enter the inset while moving backwards
-       bool idxLast(Cursor & cur) const;
+       /// The index of the cell entered while moving backward
+       size_type lastIdx() const { return 0; }
 
        /// write LaTeX and Lyx code
        void write(WriteStream & os) const;
@@ -107,9 +105,9 @@ private:
        /// Italic correction as described in InsetMathScript.h
        int nker(BufferView const * bv) const;
        /// Whether there are two left scripts or one single cell
-       bool scriptl_; 
+       bool scriptl_;
        /// Whether there are two right scripts or one single cell
-       bool scriptr_; 
+       bool scriptr_;
 };