]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_pos.C
make \newcommand{\bb}[1]{\mathbf{#1}} work for read/write/display.
[lyx.git] / src / mathed / math_pos.C
index 889f13782a73ce563b4b94cc9b1430f0f88fe2f4..7b57373f2ee9dab5d1a3dc1b677c274f18bf607c 100644 (file)
@@ -13,43 +13,39 @@ MathCursorPos::MathCursorPos()
 {}
 
 
-MathCursorPos::MathCursorPos(MathAtom & t)
-       : par_(&t), idx_(0), pos_(0)
+MathCursorPos::MathCursorPos(MathInset * p)
+       : par_(p), idx_(0), pos_(0)
 {
        lyx::Assert(par_);
-       lyx::Assert(par_->nucleus());
 }
 
 
+
 MathArray & MathCursorPos::cell(MathArray::idx_type idx) const
 {
        lyx::Assert(par_);
-       lyx::Assert(par_->nucleus());
-       return par_->nucleus()->cell(idx);
+       return par_->cell(idx);
 }
 
 
 MathArray & MathCursorPos::cell() const
 {
        lyx::Assert(par_);
-       lyx::Assert(par_->nucleus());
-       return par_->nucleus()->cell(idx_);
+       return par_->cell(idx_);
 }
 
 
 MathXArray & MathCursorPos::xcell(MathArray::idx_type idx) const
 {
        lyx::Assert(par_);
-       lyx::Assert(par_->nucleus());
-       return par_->nucleus()->xcell(idx);
+       return par_->xcell(idx);
 }
 
 
 MathXArray & MathCursorPos::xcell() const
 {
        lyx::Assert(par_);
-       lyx::Assert(par_->nucleus());
-       return par_->nucleus()->xcell(idx_);
+       return par_->xcell(idx_);
 }