]> git.lyx.org Git - lyx.git/blobdiff - src/cursor_slice.C
fix crash after removing a table row (again due to uncorrected cursor
[lyx.git] / src / cursor_slice.C
index 2f8bb87857049218d03575afe23e7443b2ce90aa..f891844e196547906fa8ac0d54d414290325c0ab 100644 (file)
@@ -166,6 +166,12 @@ bool operator>(CursorSlice const & p, CursorSlice const & q)
 }
 
 
+bool operator<=(CursorSlice const & p, CursorSlice const & q)
+{
+       return !(q < p);
+}
+
+
 std::ostream & operator<<(std::ostream & os, CursorSlice const & item)
 {
        return os