]> git.sur5r.net Git - glabels/commitdiff
Don't allow clipping to affect outlines
authorJim Evins <evins@snaught.com>
Wed, 4 Nov 2009 02:20:43 +0000 (21:20 -0500)
committerJim Evins <evins@snaught.com>
Wed, 4 Nov 2009 02:20:43 +0000 (21:20 -0500)
Remove clipping region before printing outlines of labels.

src/print.c

index b4b4df5775a8c11a3cfe5a5a2829574c4b969b01..0279bd3d5db66798f17542e8b2dfb278137e0a63 100644 (file)
@@ -509,6 +509,8 @@ print_label (PrintInfo     *pi,
        /* of the current label */
        cairo_translate (pi->cr, x, y);
 
+       cairo_save (pi->cr);
+
        clip_to_outline (pi, label);
 
        cairo_save (pi->cr);
@@ -528,6 +530,8 @@ print_label (PrintInfo     *pi,
 
        cairo_restore (pi->cr); /* From special transformations. */
 
+       cairo_restore (pi->cr); /* From clip to outline. */
+
        if (outline_flag) {
                draw_outline (pi, label);
        }