mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
0fc1b8d397
commit
b3fa703ea7
@ -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>
|
2002-07-22 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||||
|
|
||||||
* math_support.C (mathed_draw_deco): fix rounding bug for rotated
|
* math_support.C (mathed_draw_deco): fix rounding bug for rotated
|
||||||
|
@ -448,8 +448,11 @@ int InsetFormula::ascent(BufferView *, LyXFont const &) const
|
|||||||
|
|
||||||
int InsetFormula::descent(BufferView *, LyXFont const &) const
|
int InsetFormula::descent(BufferView *, LyXFont const &) const
|
||||||
{
|
{
|
||||||
return preview_->usePreview() ?
|
if (!preview_->usePreview())
|
||||||
preview_->pimage_->descent() : 1 + par_->descent();
|
return 1 + par_->descent();
|
||||||
|
|
||||||
|
int const descent = preview_->pimage_->descent();
|
||||||
|
return display() ? descent + 12 : descent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user