fix off-by-one-pixel drawing problem

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2870 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2001-10-12 13:15:34 +00:00
parent 3e2e63a4b4
commit bb3a2ccaa5

View File

@ -357,13 +357,13 @@ bool InsetFormula::insetAllowed(Inset::Code code) const
int InsetFormula::ascent(BufferView *, LyXFont const &) const
{
return par_->ascent() + 1;
return par_->ascent() + 2;
}
int InsetFormula::descent(BufferView *, LyXFont const &) const
{
return par_->descent() + 1;
return par_->descent() - 2;
}