]> git.lyx.org Git - lyx.git/commitdiff
some visual feedback for extra vertical space
authorAndré Pönitz <poenitz@gmx.net>
Fri, 10 Aug 2001 12:12:03 +0000 (12:12 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 10 Aug 2001 12:12:03 +0000 (12:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2481 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_gridinset.C
src/mathed/math_gridinset.h

index 44fcc33ec8f051fc066596c5ee40a8dccf3f8cc1..18dd9efd39cea61d197577095d8a1ae178525afd 100644 (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 
index af1ff7dfa24f3dac5daed40bd6e4134ba8cc887a..d2044828763bc0421f89945051712621b1594c7a 100644 (file)
@@ -22,6 +22,8 @@ class MathGridInset : public MathNestInset {
        struct RowInfo {
                ///
                RowInfo();
+               ///
+               int skipPixels() const;
                /// cached descent
                mutable int descent_;
                /// cached ascent