]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_xiter.C
mathed33.diff
[features.git] / src / mathed / math_xiter.C
index 6e449fe0bcfadc983fa51117a6f320d39dae38d9..860dfe89a80ca6f72c61eb633b6f1aaee898f7bb 100644 (file)
@@ -195,7 +195,7 @@ void MathedXIter::SetData(MathParInset * pp)
 {
        p_ = pp;
        x_ = y_ = 0;
-       array = p_->GetData();
+       array = &p_->GetData();
        ncols = p_->GetColumns();
        crow_ = p_->getRowSt();
        if (p_->Permit(LMPF_ALLOW_CR))
@@ -209,7 +209,7 @@ void MathedXIter::SetData(MathParInset * pp)
        } 
        if (!array) {
                array = new MathedArray; // this leaks
-               p_->setData(array);
+               p_->setData(*array);
        }
        size_ = p_->GetStyle();
        Reset();