mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
* InsetSpace.cpp:
- brace/arrowfill drawing cosmetics, by Helge. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25002 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2b8c5bd406
commit
48e6184e84
@ -239,7 +239,18 @@ void InsetSpace::draw(PainterInfo & pi, int x, int y) const
|
|||||||
int const y0 = y + desc - 1;
|
int const y0 = y + desc - 1;
|
||||||
int const y1 = y - asc + oddheight - 1;
|
int const y1 = y - asc + oddheight - 1;
|
||||||
int const y2 = (y0 + y1) / 2;
|
int const y2 = (y0 + y1) / 2;
|
||||||
int const xoffset = (y0 - y1) / 2;
|
int xoffset = (y0 - y1) / 2;
|
||||||
|
|
||||||
|
//Two tests for very narrow insets
|
||||||
|
if (xoffset > x1 - x0
|
||||||
|
&& (params_.kind == InsetSpaceParams::LEFTARROWFILL
|
||||||
|
|| params_.kind == InsetSpaceParams::RIGHTARROWFILL))
|
||||||
|
xoffset = x1 - x0;
|
||||||
|
if (xoffset * 6 > (x1 - x0)
|
||||||
|
&& (params_.kind == InsetSpaceParams::UPBRACEFILL
|
||||||
|
|| params_.kind == InsetSpaceParams::DOWNBRACEFILL))
|
||||||
|
xoffset = (x1 - x0) / 6;
|
||||||
|
|
||||||
int const x2 = x0 + xoffset;
|
int const x2 = x0 + xoffset;
|
||||||
int const x3 = x1 - xoffset;
|
int const x3 = x1 - xoffset;
|
||||||
int const xm = (x0 + x1) / 2;
|
int const xm = (x0 + x1) / 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user