[Xfce4-commits] <ristretto:master> Improve sort functions
Stephan Arts
noreply at xfce.org
Fri Oct 14 17:28:02 CEST 2011
Updating branch refs/heads/master
to be845628dee380d6df00db2b660d789a7eab5f49 (commit)
from 2a28c5e03ca7a8a22923478c38fc1a6304304361 (commit)
commit be845628dee380d6df00db2b660d789a7eab5f49
Author: Stephan Arts <stephan at xfce.org>
Date: Fri Oct 14 17:27:16 2011 +0200
Improve sort functions
src/image_list.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/image_list.c b/src/image_list.c
index 5043338..6fa1d42 100644
--- a/src/image_list.c
+++ b/src/image_list.c
@@ -634,7 +634,11 @@ cb_rstto_image_list_image_name_compare_func (RsttoFile *a, RsttoFile *b)
}
/* If both strings are equal, we're done */
- if (ac != bc)
+ if (ac == bc)
+ {
+ return 0;
+ }
+ else
{
if (G_UNLIKELY (g_ascii_isdigit (ac) || g_ascii_isdigit (bc)))
{
@@ -658,7 +662,7 @@ cb_rstto_image_list_image_name_compare_func (RsttoFile *a, RsttoFile *b)
{
if (ac > bc)
result = 1;
- else
+ if (ac < bc)
result = -1;
}
More information about the Xfce4-commits
mailing list