Commit afcbffb7 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

grib2GetLevel: set level bounds if 0 < leveltype2 < 255

parent 6eef9bbe
......@@ -724,7 +724,7 @@ void grib2GetLevel(grib_handle *gh, int *leveltype, int *lbounds, int *level1, i
status = grib_get_long(gh, "typeOfSecondFixedSurface", &lpar);
if ( status == 0 ) leveltype2 = lpar;
if ( *leveltype != 255 && *leveltype2 != 255 && *leveltype2 > 0 ) *lbounds = 1;
if ( *leveltype != 255 && leveltype2 != 255 && leveltype2 > 0 ) *lbounds = 1;
if ( *lbounds == 0 )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment