]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_pos.C
Georg Baum's vspace change
[lyx.git] / src / mathed / math_pos.C
index 522ac72443f6fb679101ca8711f5c755440627ce..39381c9f23495ccbe8e8ace4a3eeff28936a1482 100644 (file)
 #include "math_pos.h"
 #include "math_inset.h"
 #include "debug.h"
-#include "support/LAssert.h"
-#include "support/LOstream.h"
 
-using namespace lyx::support;
+#include <boost/assert.hpp>
 
 using std::endl;
 
@@ -29,21 +27,21 @@ CursorPos::CursorPos()
 CursorPos::CursorPos(MathInset * p)
        : inset_(p), idx_(0), pos_(0)
 {
-       Assert(inset_);
+       BOOST_ASSERT(inset_);
 }
 
 
 
 MathArray & CursorPos::cell(MathArray::idx_type idx) const
 {
-       Assert(inset_);
+       BOOST_ASSERT(inset_);
        return inset_->cell(idx);
 }
 
 
 MathArray & CursorPos::cell() const
 {
-       Assert(inset_);
+       BOOST_ASSERT(inset_);
        return inset_->cell(idx_);
 }
 
@@ -82,8 +80,8 @@ bool operator!=(CursorPos const & p, CursorPos const & q)
 bool operator<(CursorPos const & p, CursorPos const & q)
 {
        if (p.inset_ != q.inset_) {
-               lyxerr << "can't compare cursor and anchor in different insets"
-                      << endl;
+               lyxerr << "can't compare cursor and anchor in different insets\n"
+                      << "p: " << p << '\n' << "q: " << q << endl;
                return true;
        }
        if (p.idx_ != q.idx_)