From 0b417d6eb1b5e4f2e137eb653bb0e61734059667 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Sat, 12 Nov 2011 23:38:30 +0100 Subject: [PATCH] feature #966: Bug returning the id of the acquired image --- src/image/ImagePool.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/image/ImagePool.cc b/src/image/ImagePool.cc index 3c38972236..b282e72a04 100644 --- a/src/image/ImagePool.cc +++ b/src/image/ImagePool.cc @@ -224,7 +224,7 @@ int ImagePool::disk_attribute(VectorAttribute * disk, return -1; } - img = imagem->acquire_image(source , uiid); + img = imagem->acquire_image(source, uiid); if ( img == 0 ) { @@ -275,6 +275,8 @@ int ImagePool::disk_attribute(VectorAttribute * disk, { img->disk_attribute(disk, index, img_type); + image_id = img->get_oid(); + update(img); img->unlock();