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 d9dab7b6c2b68cd28a8c0ec3b30ea3014d3e27eb..d19a8bcf8ed7d846613c3509b11ceb907c2e48ba 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 463cf6add9682e9b3f0e8e4ce3b285b3557f98ed..641edf946d0b2e0105caccf30f0ac80d0dac24b0 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 9a212caadb7678099679ef90100a0e555b339c2b..a9d69fcde45edcc65edbffc568b6ee5331cb713b 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 32e60fe49f9fcccab05cef7fe073c37ef696db5a..f2de61f466d87b9f761e4cc51b26da75acf74090 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)