[gtkhtml] Bug #634578 - Highlighting text in preview renders it invisible
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkhtml] Bug #634578 - Highlighting text in preview renders it invisible
- Date: Thu, 11 Nov 2010 12:54:50 +0000 (UTC)
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]