[gthumb] find duplicates: fixed ordering by modification date
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] find duplicates: fixed ordering by modification date
- Date: Sun, 3 Jul 2011 16:03:34 +0000 (UTC)
commit 0a1089dc7ff28cd943f4e9aa66d4e18f5a806131
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Jul 3 18:01:11 2011 +0200
find duplicates: fixed ordering by modification date
extensions/find_duplicates/gth-find-duplicates.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/find_duplicates/gth-find-duplicates.c b/extensions/find_duplicates/gth-find-duplicates.c
index 997ce62..b17101c 100644
--- a/extensions/find_duplicates/gth-find-duplicates.c
+++ b/extensions/find_duplicates/gth-find-duplicates.c
@@ -750,10 +750,10 @@ select_files_leaving_one (GthFindDuplicates *self,
switch (selection_type) {
case SELECT_LEAVE_NEWEST:
- is_newest = _g_time_val_cmp (t_file_data, t_newest_file) < 0;
+ is_newest = _g_time_val_cmp (t_file_data, t_newest_file) > 0;
break;
case SELECT_LEAVE_OLDEST:
- is_newest = _g_time_val_cmp (t_file_data, t_newest_file) > 0;
+ is_newest = _g_time_val_cmp (t_file_data, t_newest_file) < 0;
break;
default:
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]