[recipes] Fix export or recipes with local images
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fix export or recipes with local images
- Date: Sun, 16 Apr 2017 04:01:00 +0000 (UTC)
commit 84592a058ecdad999f1b1b24e3aa64372e5bdac9
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 15 23:59:44 2017 -0400
Fix export or recipes with local images
We were using the wrong path for images that have been
locally added. These are not in cache dir, but in data dir.
https://bugzilla.gnome.org/show_bug.cgi?id=781292
src/gr-image.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gr-image.c b/src/gr-image.c
index a26db44..c018133 100644
--- a/src/gr-image.c
+++ b/src/gr-image.c
@@ -193,9 +193,12 @@ get_image_cache_path (GrImage *ri)
}
char *
-gr_image_get_cache_path (GrImage *image)
+gr_image_get_cache_path (GrImage *ri)
{
- return get_image_cache_path (image);
+ if (ri->path[0] == '/')
+ return g_strdup (ri->path);
+ else
+ return get_image_cache_path (ri);
}
static char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]