]> git.lyx.org Git - features.git/blobdiff - src/mathed/formula.C
fix off-by-one-pixel drawing problem
[features.git] / 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;
 }