[evolution/gnome-2-30] Bug #592117 - Calendar compressed weekend print improvement



commit 8580bd4a42a98f0171e9524d69385c9868c7c07a
Author: pepp <pelloux gmail com>
Date:   Fri Apr 2 11:23:27 2010 +0200

    Bug #592117 - Calendar compressed weekend print improvement

 calendar/gui/print.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/calendar/gui/print.c b/calendar/gui/print.c
index d51f4ce..a3e9af3 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. */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]