]> 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 5b29fefe340256d7fb10199593153e7287e2faa7..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)