From bbce449bdf0c6f1d9720bfd291bc8ee3814c4af7 Mon Sep 17 00:00:00 2001 From: Christoph Hohmann Date: Sat, 5 Oct 2002 22:31:56 +0000 Subject: [PATCH] * src/gtkstext.c check if line_start_cache is set in gtk_stext_update_text (closes bug [ 618119 ] crash while doing search in folder) --- ChangeLog.claws | 6 ++++++ configure.in | 2 +- src/gtkstext.c | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index 1bfedd5e6..8b4f37b9d 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,9 @@ +2002-10-05 [christoph] 0.8.3claws49 + + * src/gtkstext.c + check if line_start_cache is set in gtk_stext_update_text + (closes bug [ 618119 ] crash while doing search in folder) + 2002-10-05 [christoph] 0.8.3claws48 * src/imap.c diff --git a/configure.in b/configure.in index 0285b232b..ef80cd876 100644 --- a/configure.in +++ b/configure.in @@ -10,7 +10,7 @@ MINOR_VERSION=8 MICRO_VERSION=3 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws48 +EXTRA_VERSION=claws49 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/gtkstext.c b/src/gtkstext.c index ab7088641..27ee99fbb 100644 --- a/src/gtkstext.c +++ b/src/gtkstext.c @@ -5903,6 +5903,10 @@ gtk_stext_update_text (GtkEditable *editable, gint width; gint height; + /* Just ignore it if we haven't been size-allocated and realized yet */ + if (text->line_start_cache == NULL) + return; + if (end_pos < 0) end_pos = TEXT_LENGTH (text); -- 2.25.1