]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.C
use a single function dimension() instead of three.
[lyx.git] / src / mathed / math_inset.C
index fb8e78baff01d742d5c96420cfdfadb6fc4022a3..428a5297137a7db2bf08699341339bffa682d5ed 100644 (file)
@@ -68,6 +68,14 @@ MathInset::size_type MathInset::nargs() const
 }
 
 
+void MathInset::dimensions(int & w, int & a, int & d) const
+{
+       w = width();
+       a = ascent();
+       d = descent();
+}
+
+
 MathXArray dummyCell;
 
 MathXArray & MathInset::xcell(idx_type)
@@ -87,14 +95,14 @@ MathXArray const & MathInset::xcell(idx_type) const
 MathArray & MathInset::cell(idx_type)
 {
        lyxerr << "I don't have a cell 3\n";
-       return dummyCell.data_;
+       return dummyCell.data();
 }
 
 
 MathArray const & MathInset::cell(idx_type) const
 {
        lyxerr << "I don't have a cell 4\n";
-       return dummyCell.data_;
+       return dummyCell.data();
 }