mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
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:
parent
babee598f4
commit
338fb721b8
@ -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
|
||||
|
@ -22,6 +22,8 @@ class MathGridInset : public MathNestInset {
|
||||
struct RowInfo {
|
||||
///
|
||||
RowInfo();
|
||||
///
|
||||
int skipPixels() const;
|
||||
/// cached descent
|
||||
mutable int descent_;
|
||||
/// cached ascent
|
||||
|
Loading…
Reference in New Issue
Block a user