Aesthetic improvement of equation positioning when previewing in display mode.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4758 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-07-23 09:23:11 +00:00
parent 0fc1b8d397
commit b3fa703ea7
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-07-23 Angus Leeming <leeming@lyx.org>
* formula.C (descent): add an arbitrary 12 pixels to the descent when
previewing a display mode equation, analogous to André's code elsewhere.
2002-07-22 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* math_support.C (mathed_draw_deco): fix rounding bug for rotated

View File

@ -448,8 +448,11 @@ int InsetFormula::ascent(BufferView *, LyXFont const &) const
int InsetFormula::descent(BufferView *, LyXFont const &) const
{
return preview_->usePreview() ?
preview_->pimage_->descent() : 1 + par_->descent();
if (!preview_->usePreview())
return 1 + par_->descent();
int const descent = preview_->pimage_->descent();
return display() ? descent + 12 : descent;
}