aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorpepp <pelloux@gmail.com>2010-04-02 17:23:27 +0800
committerMilan Crha <mcrha@redhat.com>2010-04-02 17:23:27 +0800
commit8580bd4a42a98f0171e9524d69385c9868c7c07a (patch)
treec0d0dff3eb8d63395fd9ef5b8e76f7f642e01110 /calendar
parent5f16d3ff9e45086128d56085e770133e98d440a9 (diff)
downloadgsoc2013-evolution-8580bd4a42a98f0171e9524d69385c9868c7c07a.tar.gz
gsoc2013-evolution-8580bd4a42a98f0171e9524d69385c9868c7c07a.tar.zst
gsoc2013-evolution-8580bd4a42a98f0171e9524d69385c9868c7c07a.zip
Bug #592117 - Calendar compressed weekend print improvement
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/print.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index d51f4cee0e..a3e9af3bdd 100644
--- a/calendar/gui/print.c
+++ b/calendar/gui/print.c
@@ -1639,10 +1639,10 @@ print_week_event (GtkPrintContext *context, PangoFontDescription *font,
if (end_day_of_week == 5 || end_day_of_week == 6) {
/* Sat or Sun */
- y1 = y1 +
- (psi->rows_per_compressed_cell -
- psi->rows_per_cell) *
- psi->row_height - 3.0;
+ y1 = top + start_y * cell_height
+ + psi->header_row_height
+ + psi->rows_per_compressed_cell * (psi->row_height + 2);
+
}
}
@@ -1865,7 +1865,7 @@ print_week_summary (GtkPrintContext *context, GnomeCalendar *gcal,
psi.rows_per_cell = ((cell_height * 2) - psi.header_row_height)
/ (psi.row_height + 2);
psi.rows_per_compressed_cell = (cell_height - psi.header_row_height)
- / psi.row_height;
+ / (psi.row_height + 2);
font = get_font_for_size (font_size, PANGO_WEIGHT_NORMAL);
/* Draw the grid and the day names/numbers. */