X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxcursor.C;h=fb298015452f491df3df0e8cc6a0b0e70641ac49;hb=09e01879979643949f1f2c7216023f1f35d5ada2;hp=03ef3017562f6a85f6001c12f2e39e210d1ec362;hpb=4882d49f88259a3f33d3687f437060e9486116c6;p=lyx.git diff --git a/src/lyxcursor.C b/src/lyxcursor.C index 03ef301756..fb29801545 100644 --- a/src/lyxcursor.C +++ b/src/lyxcursor.C @@ -13,7 +13,7 @@ LyXCursor::LyXCursor() : par_(), pos_(0), boundary_(false), - x_(0), ix_(0), x_fix_(0), y_(0), iy_(0), row_(0) + x_(0), ix_(0), x_fix_(0), y_(0), iy_(0) {} @@ -111,25 +111,16 @@ int LyXCursor::iy() const } -void LyXCursor::row(RowList::iterator r) +bool operator==(LyXCursor const & a, LyXCursor const & b) { - row_ = r; + return a.par() == b.par() + && a.pos() == b.pos() + && a.boundary() == b.boundary(); } -RowList::iterator LyXCursor::row() const +bool operator!=(LyXCursor const & a, LyXCursor const & b) { - return row_; + return !(a == b); } - -void LyXCursor::irow(RowList::iterator r) -{ - irow_ = r; -} - - -RowList::iterator LyXCursor::irow() const -{ - return irow_; -}