]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diminset.h
Fix reading of math macros
[lyx.git] / src / mathed / math_diminset.h
index 02835afc5cbc475706f83ee59d9fae48a3e52972..be2ad9f14d19b9c3f0d480f5e636899a448ac7cb 100644 (file)
@@ -2,6 +2,10 @@
 #ifndef MATH_DIMINSET_H
 #define MATH_DIMINSET_H
 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include "math_inset.h"
 #include "dimension.h"
 
@@ -17,8 +21,8 @@ public:
        int descent() const { return dim_.descent(); }
        /// read width
        int width() const { return dim_.width(); }
-       /// 
-       void dimensions(Dimension & dim) const;
+       ///
+       Dimension dimensions() const { return dim_; }
        ///
        void metricsT(TextMetricsInfo const &) const;
        ///