]> 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 a49bfa1a248153a069c6ed92deafddb32468622b..39381c9f23495ccbe8e8ace4a3eeff28936a1482 100644 (file)
@@ -1,10 +1,22 @@
+/**
+ * \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 "config.h"
 #include "math_pos.h"
 #include "math_inset.h"
 #include "debug.h"
-#include "support/LAssert.h"
-#include "support/LOstream.h"
+
+#include <boost/assert.hpp>
+
+using std::endl;
 
 
 CursorPos::CursorPos()
@@ -15,21 +27,21 @@ CursorPos::CursorPos()
 CursorPos::CursorPos(MathInset * p)
        : inset_(p), idx_(0), pos_(0)
 {
-       lyx::Assert(inset_);
+       BOOST_ASSERT(inset_);
 }
 
 
 
 MathArray & CursorPos::cell(MathArray::idx_type idx) const
 {
-       lyx::Assert(inset_);
+       BOOST_ASSERT(inset_);
        return inset_->cell(idx);
 }
 
 
 MathArray & CursorPos::cell() const
 {
-       lyx::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_)