[gtkhtml] Bug #634578 - Highlighting text in preview renders it invisible



commit 030ef5aeb7c5f1e8afac1fead15a1ac54f66656c
Author: Milan Crha <mcrha redhat com>
Date:   Thu Nov 11 13:54:21 2010 +0100

    Bug #634578 - Highlighting text in preview renders it invisible

 gtkhtml/htmlgdkpainter.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtkhtml/htmlgdkpainter.c b/gtkhtml/htmlgdkpainter.c
index e80ff9b..6bc4fdd 100644
--- a/gtkhtml/htmlgdkpainter.c
+++ b/gtkhtml/htmlgdkpainter.c
@@ -265,9 +265,10 @@ set_clip_rectangle (HTMLPainter *painter,
 
 	gdk_painter = HTML_GDK_PAINTER (painter);
 
-	if (width == 0 || height == 0) {
+	cairo_reset_clip (gdk_painter->cr);
+
+	if (width == 0 || height == 0)
 		return;
-	}
 
 	rect.x = CLAMP (x - gdk_painter->x1, 0, gdk_painter->x2 - gdk_painter->x1);
 	rect.y = CLAMP (y - gdk_painter->y1, 0, gdk_painter->y2 - gdk_painter->y1);



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