]> git.lyx.org Git - features.git/commitdiff
fix off-by-one-pixel drawing problem
authorAndré Pönitz <poenitz@gmx.net>
Fri, 12 Oct 2001 13:15:34 +0000 (13:15 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 12 Oct 2001 13:15:34 +0000 (13:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2870 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/formula.C

index 0e4ab85af1c1f25b189d97144bcdeb0d860f4f42..2c1723812a80d2d41b3876bcc3628aa215410da8 100644 (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;
 }