From 338fb721b8734a5d43da5e3ab001d81b81752f14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 10 Aug 2001 12:12:03 +0000 Subject: [PATCH] some visual feedback for extra vertical space git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2481 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_gridinset.C | 11 +++++++++++ src/mathed/math_gridinset.h | 2 ++ 2 files changed, 13 insertions(+) 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 -- 2.39.2