]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_xymatrixinset.C
fix #1073
[lyx.git] / src / mathed / math_xymatrixinset.C
index c18052a8d97455de3f29c542ad3e8e40b2c85496..46da10ee9675f42a62855086fb21a6e121b5acc0 100644 (file)
@@ -1,8 +1,5 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_xymatrixinset.h"
 #include "math_mathmlstream.h"
@@ -32,11 +29,11 @@ int MathXYMatrixInset::rowsep() const
 }
 
 
-void MathXYMatrixInset::metrics(MathMetricsInfo const & st) const
+void MathXYMatrixInset::metrics(MetricsInfo & st) const
 {
-       MathMetricsInfo mi = st;
-       if (mi.style == LM_ST_DISPLAY)
-               mi.style = LM_ST_TEXT;
+       MetricsInfo mi = st;
+       if (mi.base.style == LM_ST_DISPLAY)
+               mi.base.style = LM_ST_TEXT;
        MathGridInset::metrics(mi);
 }
 
@@ -53,13 +50,13 @@ void MathXYMatrixInset::normalize(NormalStream & os) const
 {
        os << "[xymatrix ";
        MathGridInset::normalize(os);
-       os << "]";
+       os << ']';
 }
 
 
-void MathXYMatrixInset::maplize(MapleStream & os) const
+void MathXYMatrixInset::maple(MapleStream & os) const
 {
        os << "xymatrix(";
-       MathGridInset::maplize(os);
-       os << ")";
+       MathGridInset::maple(os);
+       os << ')';
 }