gtkhtml r9133 - trunk/gtkhtml
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkhtml r9133 - trunk/gtkhtml
- Date: Thu, 12 Feb 2009 10:41:03 +0000 (UTC)
Author: mcrha
Date: Thu Feb 12 10:41:03 2009
New Revision: 9133
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=9133&view=rev
Log:
2009-02-12 Milan Crha <mcrha redhat com>
** Fix for bug #569365
* htmlengine-edit-cursor.c: (draw_cursor_rectangle),
(html_engine_draw_cursor_in_area):
Do not draw a cursor without a window.
Modified:
trunk/gtkhtml/ChangeLog
trunk/gtkhtml/htmlengine-edit-cursor.c
Modified: trunk/gtkhtml/htmlengine-edit-cursor.c
==============================================================================
--- trunk/gtkhtml/htmlengine-edit-cursor.c (original)
+++ trunk/gtkhtml/htmlengine-edit-cursor.c Thu Feb 12 10:41:03 2009
@@ -123,7 +123,7 @@
GdkColor color;
gint8 dashes [2] = { 1, 3 };
- if (x1 > x2 || y1 > y2)
+ if (x1 > x2 || y1 > y2 || !e->window)
return;
gc = gdk_gc_new (e->window);
@@ -303,7 +303,7 @@
return;
obj = engine->cursor->object;
- if (obj == NULL)
+ if (obj == NULL || engine->window == NULL)
return;
offset = engine->cursor->offset;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]