Made gtkut_editable_get_selection return NULL if selection is of length zero.
authorMelvin Hadasht <melvin.hadasht@free.fr>
Tue, 12 Feb 2002 23:51:22 +0000 (23:51 +0000)
committerMelvin Hadasht <melvin.hadasht@free.fr>
Tue, 12 Feb 2002 23:51:22 +0000 (23:51 +0000)
ChangeLog.claws
configure.in
src/gtkutils.c

index b5d8d2e69ac2dff6a0687c4088b8195dd439cc8b..4224e582c9cfb087875b4222b7e0a89debb500ef 100644 (file)
@@ -1,3 +1,12 @@
+2002-02-12 |melvin]    0.7.0claws71
+
+       * src/gtkutils.c
+               Made gtkut_editable_get_selection return NULL if selection
+               is of length zero.
+               This fixes a bug where selecting part of message A then
+               switching to message B and replying to it will not
+               quote the message's body.
+
 2002-02-12 [paul]      0.7.0claws70
 
        * src/mainwindow.c
index 37c68c024f4e5d6fc1b9852875d74ccf9d3dbca8..72bdd863477400a09dec7c4c42174768772e2bbd 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws70
+EXTRA_VERSION=claws71
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 061f4f8e669daf043b3eb8bbca4c2796ea6ce7ed..c3fe890dda7eaa066f05d57c54dd2f0908ca257f 100644 (file)
@@ -258,6 +258,9 @@ gchar *gtkut_editable_get_selection(GtkEditable *editable)
 
        if (!editable->has_selection) return NULL;
 
+       if (editable->selection_start_pos == editable->selection_end_pos)
+               return NULL;
+       
        if (editable->selection_start_pos < editable->selection_end_pos) {
                start_pos = editable->selection_start_pos;
                end_pos = editable->selection_end_pos;