fix Bug #136 'Nonprovided quotation marks crash claws'
authorPaul Mangan <paul@claws-mail.org>
Thu, 19 Jun 2003 16:29:49 +0000 (16:29 +0000)
committerPaul Mangan <paul@claws-mail.org>
Thu, 19 Jun 2003 16:29:49 +0000 (16:29 +0000)
AUTHORS
ChangeLog.claws
configure.ac
src/compose.c

diff --git a/AUTHORS b/AUTHORS
index d9dab7b..d19a8bc 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -178,3 +178,4 @@ contributors (beside the above; based on Changelog)
        Tsu-Fan Cheng
        Martin Zwickel
        Martin Wicke
+       P. Pêkala
index 463cf6a..641edf9 100644 (file)
@@ -1,3 +1,9 @@
+2003-06-19 [paul]      0.9.0claws49
+
+       * src/compose.c
+               fix Bug #136 'Nonprovided quotation marks crash claws'
+               patch submitted by P. Pêkala <c0rn@gazeta.pl>
+
 2003-06-19 [alfons]    0.9.0claws48
 
        * src/prefs_common.[ch]
index 9a212ca..a9d69fc 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=0
 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 32e60fe..f2de61f 100644 (file)
@@ -2373,6 +2373,10 @@ static guint get_indent_length(GtkSText *text, guint start_pos, guint text_len)
        gboolean is_space;
        gboolean is_indent;
 
+       if (prefs_common.quote_chars == NULL) {
+               return 0 ;
+       }
+
        for (i = start_pos; i < text_len; i++) {
                GET_CHAR(i, cbuf, ch_len);
                if (ch_len > 1)