mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Readd two pixels to the widths of colored backgrounds in the dense calendar.
When drawing week backgrounds and the outer month borders, two mysterious pixels were subtracted from the widths. This led to two white pixels at the end of incomplete weeks that contained the last day of the month and belonged to the last month of a calendar column. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16139 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f65e8bb40a
commit
8498c69a8d
@ -887,7 +887,7 @@ gnc_dense_cal_draw_to_buffer(GncDenseCal *dcal)
|
||||
rect = (GdkRectangle*)mcListIter->data;
|
||||
gdk_draw_rectangle(dcal->drawbuf, gc,
|
||||
TRUE, rect->x, rect->y,
|
||||
rect->width - 2, rect->height);
|
||||
rect->width, rect->height);
|
||||
}
|
||||
g_list_foreach(mcList, free_rect, NULL);
|
||||
g_list_free(mcList);
|
||||
@ -957,7 +957,7 @@ gnc_dense_cal_draw_to_buffer(GncDenseCal *dcal)
|
||||
+ (i * (col_width(dcal)+COL_BORDER_SIZE))
|
||||
+ dcal->label_width;
|
||||
y = dcal->topPadding + dcal->dayLabelHeight;
|
||||
w = col_width(dcal) - COL_BORDER_SIZE - dcal->label_width - 2;
|
||||
w = col_width(dcal) - COL_BORDER_SIZE - dcal->label_width;
|
||||
h = col_height(dcal);
|
||||
|
||||
/* draw the outside border [inside the month labels] */
|
||||
|
Loading…
Reference in New Issue
Block a user