This commit is contained in:
Enrico Fucile 2016-02-10 17:43:00 +00:00
parent 818d980047
commit 517e59ebbe
1 changed files with 6 additions and 0 deletions

View File

@ -1646,6 +1646,12 @@ static int create_keys(grib_accessor* a,long onlySubset,long startSubset,long en
elementAccessor=create_accessor_from_descriptor(a,associatedFieldAccessor,section,ide,iss,dump,count);
associatedFieldAccessor=NULL;
if (elementFromBitmap && self->unpackMode==CODES_BUFR_UNPACK_STRUCTURE) {
grib_accessor* newAccessor=grib_accessor_clone(elementAccessor,section,&err);
newAccessor->parent=groupSection;
newAccessor->name=grib_context_strdup(c,elementFromBitmap->name);
grib_push_accessor(newAccessor,groupSection->block);
grib_accessors_list_push(self->dataAccessors,newAccessor);
err=grib_accessor_add_attribute(elementFromBitmap,elementAccessor,1);
} else if (elementAccessor) {