* src/gtkstext.c
authorChristoph Hohmann <reboot@gmx.ch>
Sat, 5 Oct 2002 22:31:56 +0000 (22:31 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Sat, 5 Oct 2002 22:31:56 +0000 (22:31 +0000)
        check if line_start_cache is set in gtk_stext_update_text
        (closes bug [ 618119 ] crash while doing search in folder)

ChangeLog.claws
configure.in
src/gtkstext.c

index 1bfedd5e65d7318a60e0c44c4a2cfeed0aca23f5..8b4f37b9d4da5dcc279fce00c0c42c1e4aa9146c 100644 (file)
@@ -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
index 0285b232bf1caddcfeb283df0c2d1499042c8208..ef80cd876480635b600033a2e00095bb1725cb6c 100644 (file)
@@ -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
index ab70886414fb99ad7b89baae19174df1cb290098..27ee99fbbb0f151c68f157913cf56d7685e77309 100644 (file)
@@ -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);