some visual feedback for extra vertical space

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2481 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-08-10 12:12:03 +00:00
parent babee598f4
commit 338fb721b8
2 changed files with 13 additions and 0 deletions

View File

@ -24,6 +24,16 @@ MathGridInset::RowInfo::RowInfo()
{}
int MathGridInset::RowInfo::skipPixels() const
{
#ifdef WITH_WARNINGS
#warning fix this once the interface to LyXLength has oimproved
#endif
return int(skip_.value());
}
MathGridInset::ColInfo::ColInfo()
: h_align_('c'), leftline_(false), rightline_(false)
{}
@ -116,6 +126,7 @@ void MathGridInset::metrics(MathStyles st) const
rowinfo_[row].offset_ =
rowinfo_[row - 1].offset_ +
rowinfo_[row - 1].descent_ +
rowinfo_[row - 1].skipPixels() +
MATH_ROWSEP +
rowinfo_[row].ascent_;
else

View File

@ -22,6 +22,8 @@ class MathGridInset : public MathNestInset {
struct RowInfo {
///
RowInfo();
///
int skipPixels() const;
/// cached descent
mutable int descent_;
/// cached ascent