From: André Pönitz Date: Fri, 10 Aug 2001 12:12:03 +0000 (+0000) Subject: some visual feedback for extra vertical space X-Git-Tag: 1.6.10~20864 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=338fb721b8734a5d43da5e3ab001d81b81752f14;p=features.git some visual feedback for extra vertical space git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2481 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/math_gridinset.C b/src/mathed/math_gridinset.C index 44fcc33ec8..18dd9efd39 100644 --- a/src/mathed/math_gridinset.C +++ b/src/mathed/math_gridinset.C @@ -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 diff --git a/src/mathed/math_gridinset.h b/src/mathed/math_gridinset.h index af1ff7dfa2..d204482876 100644 --- a/src/mathed/math_gridinset.h +++ b/src/mathed/math_gridinset.h @@ -22,6 +22,8 @@ class MathGridInset : public MathNestInset { struct RowInfo { /// RowInfo(); + /// + int skipPixels() const; /// cached descent mutable int descent_; /// cached ascent