[gthumb] get_image_loader_func: skip the preferred format
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] get_image_loader_func: skip the preferred format
- Date: Sun, 30 Jun 2013 08:40:48 +0000 (UTC)
commit f471804fe6242b0de9fe91944efac3d7f7107368
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Jun 28 16:37:49 2013 +0200
get_image_loader_func: skip the preferred format
it is already checked in the lines above
gthumb/gth-main.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-main.c b/gthumb/gth-main.c
index 3e7f4f5..a0bbdcf 100644
--- a/gthumb/gth-main.c
+++ b/gthumb/gth-main.c
@@ -729,6 +729,8 @@ gth_main_get_image_loader_func (const char *mime_type,
* format. */
for (format = 0; (loader == NULL) && (format < GTH_IMAGE_N_FORMATS); format++) {
+ if (format == preferred_format)
+ continue;
g_free (key);
key = g_strdup_printf ("%s-%d", mime_type, format);
loader = g_hash_table_lookup (Main->priv->image_loaders, key);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]