fix xxalignat bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5155 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-08-29 06:49:27 +00:00
parent 65bd82add0
commit b8b975cd52
2 changed files with 6 additions and 5 deletions

View File

@ -214,12 +214,11 @@ Dimension const & MathArray::metrics(MathMetricsInfo & mi) const
clean_ = true;
drawn_ = false;
if (empty()) {
mathed_char_dim(mi.base.font, 'I', dim_);
mathed_char_dim(mi.base.font, 'I', dim_);
if (empty())
return dim_;
}
dim_.clear();
dim_.w = 0;
for (const_iterator it = begin(), et = end(); it != et; ++it) {
(*it)->metrics(mi);
dim_ += (*it)->dimensions();

View File

@ -402,7 +402,9 @@ void MathHullInset::footer_write(WriteStream & os) const
bool MathHullInset::colChangeOK() const
{
return type_ == "align" || type_ == "alignat" || type_ == "xalignat";
return
type_ == "align" || type_ == "alignat" ||
type_ == "xalignat" || type_ == "xxalignat";
}