ECC-433: BUFR operator 206YYY not working. Fix case for ECMWF local descriptor which we can decode

This commit is contained in:
Shahram Najm 2017-06-20 18:15:34 +01:00
parent 80c8056f28
commit 86a32f4dda
1 changed files with 4 additions and 2 deletions

View File

@ -642,9 +642,11 @@ static int expand(grib_accessor* a)
operator206yyy_width = aDescriptor1->Y; /* Store the width for the following descriptor */
}
else if (operator206yyy_width>0) {
err = 0; /* Clear any error generated due to local descriptor */
if (err == GRIB_NOT_FOUND) {
err = 0; /* Clear any error generated due to local descriptor */
aDescriptor1->nokey = aDescriptor2->nokey = 1; /* Do not show this descriptor in dump */
}
aDescriptor1->width = aDescriptor2->width = operator206yyy_width;
aDescriptor1->nokey = aDescriptor2->nokey = 1; /* Do not show this descriptor in dump */
operator206yyy_width = 0; /* Restore. Operator no longer in scope */
}