[gthumb: 20/23] contact_sheet: fixed thumbnail draw



commit b2353728e7eda03492b8ccba3d56944d429dbbb1
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Dec 26 19:59:29 2010 +0100

    contact_sheet: fixed thumbnail draw

 extensions/contact_sheet/gth-contact-sheet-theme.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/extensions/contact_sheet/gth-contact-sheet-theme.c b/extensions/contact_sheet/gth-contact-sheet-theme.c
index e14d966..a73a89d 100644
--- a/extensions/contact_sheet/gth-contact-sheet-theme.c
+++ b/extensions/contact_sheet/gth-contact-sheet-theme.c
@@ -474,11 +474,11 @@ paint_thumbnail (GthContactSheetTheme  *theme,
 
 	cairo_set_source_rgb (cr, 0.66, 0.66, 0.66);
 	cairo_set_line_width (cr, 1.0);
-	cairo_rectangle (cr, image_rect->x + 0.5, image_rect->y + 0.5, image_rect->width, image_rect->height);
+	cairo_rectangle (cr, image_rect->x + 0.5, image_rect->y + 0.5, image_rect->width - 1, image_rect->height - 1);
 	cairo_move_to (cr, image_rect->x, image_rect->y);
-	cairo_line_to (cr, image_rect->x + image_rect->width, image_rect->y + image_rect->height);
-	cairo_move_to (cr, image_rect->x + image_rect->width, image_rect->y);
-	cairo_line_to (cr, image_rect->x, image_rect->y + image_rect->height);
+	cairo_line_to (cr, image_rect->x + image_rect->width - 1, image_rect->y + image_rect->height - 1);
+	cairo_move_to (cr, image_rect->x + image_rect->width - 1, image_rect->y);
+	cairo_line_to (cr, image_rect->x, image_rect->y + image_rect->height - 1);
 	cairo_stroke (cr);
 
 	/* caption */



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