]> git.lyx.org Git - lyx.git/blobdiff - src/cursor_slice.C
Store and use QImage rather than QPixmap.
[lyx.git] / src / cursor_slice.C
index a537aee3aa373a2d9a0d7ca412705c9dc4468dc7..f891844e196547906fa8ac0d54d414290325c0ab 100644 (file)
@@ -150,7 +150,7 @@ bool operator<(CursorSlice const & p, CursorSlice const & q)
        if (&p.inset() != &q.inset()) {
                lyxerr << "can't compare cursor and anchor in different insets\n"
                       << "p: " << p << '\n' << "q: " << q << endl;
-               return true;
+               BOOST_ASSERT(false);
        }
        if (p.idx() != q.idx())
                return p.idx() < q.idx();
@@ -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