[gimp] Get rid of using gimp_container_get_vectors_by_index() in xcf-load.c
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Get rid of using gimp_container_get_vectors_by_index() in xcf-load.c
- Date: Sun, 2 Aug 2009 13:49:34 +0000 (UTC)
commit 3c76b2797b78243b8456288ed2b25a18e4508a33
Author: Michael Natterer <mitch gimp org>
Date: Sun Aug 2 15:48:27 2009 +0200
Get rid of using gimp_container_get_vectors_by_index() in xcf-load.c
One of the places needs changing if we ever support trees of vectors,
the other one deals with compat paths which can't be in a tree anyway.
app/xcf/xcf-load.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/app/xcf/xcf-load.c b/app/xcf/xcf-load.c
index a644d55..48d0e1a 100644
--- a/app/xcf/xcf-load.c
+++ b/app/xcf/xcf-load.c
@@ -1531,7 +1531,9 @@ xcf_load_old_paths (XcfInfo *info,
while (num_paths-- > 0)
xcf_load_old_path (info, image);
- active_vectors = gimp_image_get_vectors_by_index (image, last_selected_row);
+ active_vectors =
+ GIMP_VECTORS (gimp_container_get_child_by_index (image->vectors,
+ last_selected_row));
if (active_vectors)
gimp_image_set_active_vectors (image, active_vectors);
@@ -1671,7 +1673,10 @@ xcf_load_vectors (XcfInfo *info,
if (! xcf_load_vector (info, image))
return FALSE;
- active_vectors = gimp_image_get_vectors_by_index (image, active_index);
+ /* FIXME tree */
+ active_vectors =
+ GIMP_VECTORS (gimp_container_get_child_by_index (image->vectors,
+ active_index));
if (active_vectors)
gimp_image_set_active_vectors (image, active_vectors);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]