aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpepp <pelloux@gmail.com>2010-04-02 17:21:09 +0800
committerMilan Crha <mcrha@redhat.com>2010-04-02 17:21:09 +0800
commitc0f4235331cfbbcba5b7b8a410ccf55ee69fa458 (patch)
treebf2364abccfe48e34055bf327cecfe878f50fb32
parentf6ffaaf692756df1c31c4c823bf95702fa128293 (diff)
downloadgsoc2013-evolution-c0f4235331cfbbcba5b7b8a410ccf55ee69fa458.tar.gz
gsoc2013-evolution-c0f4235331cfbbcba5b7b8a410ccf55ee69fa458.tar.zst
gsoc2013-evolution-c0f4235331cfbbcba5b7b8a410ccf55ee69fa458.zip
Bug #592117 - Calendar compressed weekend print improvement
-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. */