]> 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 3caa88fd68ad697a3b9f9b43baae4189e37ea3e7..39381c9f23495ccbe8e8ace4a3eeff28936a1482 100644 (file)
@@ -1,11 +1,23 @@
-#include "config.h"
+/**
+ * \file math_pos.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#include <config.h>
+
 #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;
+
 
 CursorPos::CursorPos()
        : inset_(0), idx_(0), pos_(0)
@@ -15,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_);
 }
 
@@ -68,7 +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\n";
+               lyxerr << "can't compare cursor and anchor in different insets\n"
+                      << "p: " << p << '\n' << "q: " << q << endl;
                return true;
        }
        if (p.idx_ != q.idx_)