[gtkhtml] Bug #471687 - Crash selecting mail content (patch by Simon Brys)
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtkhtml] Bug #471687 - Crash selecting mail content (patch by Simon Brys)
- Date: Tue, 3 Nov 2009 15:49:02 +0000 (UTC)
commit 5147eac12bdd32051a33a395882af9a09197f3cc
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 3 16:48:08 2009 +0100
Bug #471687 - Crash selecting mail content (patch by Simon Brys)
gtkhtml/htmltable.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtkhtml/htmltable.c b/gtkhtml/htmltable.c
index 15a09e3..b0d2ab9 100644
--- a/gtkhtml/htmltable.c
+++ b/gtkhtml/htmltable.c
@@ -182,6 +182,13 @@ op_copy (HTMLObject *self, HTMLObject *parent, HTMLEngine *e, GList *from, GList
start = HTML_TABLE_CELL ((from && from->next) ? from->data : html_object_head (self));
end = HTML_TABLE_CELL ((to && to->next) ? to->data : html_object_tail (self));
+
+ if (!start || !end) {
+ copy_sized (self, HTML_OBJECT (nt), 0, 0);
+ (*len) ++;
+ return HTML_OBJECT (nt);
+ }
+
rows = end->row - start->row + 1;
cols = end->row == start->row ? end->col - start->col + 1 : t->totalCols;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]