mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-09 02:28:19 +00:00
fix a regression after the recent grid handling changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6897 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e48e2aa2cf
commit
66651dd332
src/mathed
@ -1,4 +1,8 @@
|
|||||||
|
|
||||||
|
2003-04-30 André Pönitz <poenitz@gmx.net>
|
||||||
|
|
||||||
|
* math_gridinset.C: fix transition to new Col/Row/CellInfo scheme
|
||||||
|
|
||||||
2003-04-14 Angus Leeming <leeming@lyx.org>
|
2003-04-14 Angus Leeming <leeming@lyx.org>
|
||||||
|
|
||||||
* math_fboxinset.C:
|
* math_fboxinset.C:
|
||||||
|
@ -193,7 +193,7 @@ string MathGridInset::halign() const
|
|||||||
res += string(colinfo_[col].lines_, '|');
|
res += string(colinfo_[col].lines_, '|');
|
||||||
res += colinfo_[col].align;
|
res += colinfo_[col].align;
|
||||||
}
|
}
|
||||||
return res + string(colinfo_[ncols()].lines_, '|');
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -422,8 +422,6 @@ void MathGridInset::metricsT(TextMetricsInfo const & mi) const
|
|||||||
rowinfo_[row].descent_ = desc;
|
rowinfo_[row].descent_ = desc;
|
||||||
}
|
}
|
||||||
//rowinfo_[0].ascent_ += hlinesep() * rowinfo_[0].lines_;
|
//rowinfo_[0].ascent_ += hlinesep() * rowinfo_[0].lines_;
|
||||||
rowinfo_[nrows()].ascent_ = 0;
|
|
||||||
rowinfo_[nrows()].descent_ = 0;
|
|
||||||
|
|
||||||
// compute vertical offsets
|
// compute vertical offsets
|
||||||
rowinfo_[0].offset_ = 0;
|
rowinfo_[0].offset_ = 0;
|
||||||
@ -460,7 +458,6 @@ void MathGridInset::metricsT(TextMetricsInfo const & mi) const
|
|||||||
wid = max(wid, cell(index(row, col)).width());
|
wid = max(wid, cell(index(row, col)).width());
|
||||||
colinfo_[col].width_ = wid;
|
colinfo_[col].width_ = wid;
|
||||||
}
|
}
|
||||||
colinfo_[ncols()].width_ = 0;
|
|
||||||
|
|
||||||
// compute horizontal offsets
|
// compute horizontal offsets
|
||||||
colinfo_[0].offset_ = border();
|
colinfo_[0].offset_ = border();
|
||||||
|
Loading…
Reference in New Issue
Block a user