]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_arrayinset.C
further code uglification to make Jean-Marc's compiler happy
[lyx.git] / src / mathed / math_arrayinset.C
index ff92bc9199efbb8607994ac32aab87fc5a805721..8e49f00026bf3dabfa2debaeca619fa944f7e68f 100644 (file)
@@ -27,8 +27,8 @@ void MathArrayInset::write(std::ostream & os, bool fragile) const
                os << '[' << char(v_align_) << ']';
 
        os << '{';
-       for (int col = 0; col < ncols(); ++col)
-               os << colinfo_[col].h_align_;
+       for (unsigned int col = 0; col < ncols(); ++col)
+               os << colinfo_[col].align_;
        os << "}\n";
 
        MathGridInset::write(os, fragile);
@@ -37,3 +37,10 @@ void MathArrayInset::write(std::ostream & os, bool fragile) const
                os << "\\protect";
        os << "\\end{array}\n";
 }
+
+
+void MathArrayInset::metrics(MathStyles st) const
+{
+       MathGridInset::metrics(st == LM_ST_DISPLAY ? LM_ST_TEXT : st);
+}
+