mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix drawing bug.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3418 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
816991a1e3
commit
92590a9498
@ -380,24 +380,40 @@ draw_cell (GnucashGrid *grid,
|
|||||||
|
|
||||||
/* top */
|
/* top */
|
||||||
draw_cell_line (drawable, grid->gc, bg_color,
|
draw_cell_line (drawable, grid->gc, bg_color,
|
||||||
x, y, x + width, y,
|
borders.top >= borders.left ? x : x + 1,
|
||||||
|
y,
|
||||||
|
(borders.top >= borders.right ?
|
||||||
|
x + width : x + width - 1),
|
||||||
|
y,
|
||||||
borders.top);
|
borders.top);
|
||||||
|
|
||||||
/* right */
|
|
||||||
draw_cell_line (drawable, grid->gc, bg_color,
|
|
||||||
x + width, y, x + width, y + height,
|
|
||||||
borders.right);
|
|
||||||
|
|
||||||
/* bottom */
|
/* bottom */
|
||||||
draw_cell_line (drawable, grid->gc, bg_color,
|
draw_cell_line (drawable, grid->gc, bg_color,
|
||||||
x + width, y + height, x, y + height,
|
borders.bottom >= borders.left ? x : x + 1,
|
||||||
|
y + height,
|
||||||
|
(borders.bottom >= borders.right ?
|
||||||
|
x + width : x + width - 1),
|
||||||
|
y + height,
|
||||||
borders.bottom);
|
borders.bottom);
|
||||||
|
|
||||||
/* left */
|
/* left */
|
||||||
draw_cell_line (drawable, grid->gc, bg_color,
|
draw_cell_line (drawable, grid->gc, bg_color,
|
||||||
x, y + height, x, y,
|
x,
|
||||||
|
borders.left > borders.top ? y : y + 1,
|
||||||
|
x,
|
||||||
|
(borders.left > borders.bottom ?
|
||||||
|
y + height : y + height - 1),
|
||||||
borders.left);
|
borders.left);
|
||||||
|
|
||||||
|
/* right */
|
||||||
|
draw_cell_line (drawable, grid->gc, bg_color,
|
||||||
|
x + width,
|
||||||
|
borders.right > borders.top ? y : y + 1,
|
||||||
|
x + width,
|
||||||
|
(borders.right > borders.bottom ?
|
||||||
|
y + height : y + height - 1),
|
||||||
|
borders.right);
|
||||||
|
|
||||||
/* dividing line */
|
/* dividing line */
|
||||||
if ((virt_loc.phys_row_offset == 0) && (table->dividing_row >= 0))
|
if ((virt_loc.phys_row_offset == 0) && (table->dividing_row >= 0))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user