[trak] Fix a couple return values

pull/4345/head
Behdad Esfahbod 1 year ago
parent 62e6f7835c
commit a3b18062b7
  1. 4
      src/hb-aat-layout-trak-table.hh

@ -111,13 +111,13 @@ struct TrackData
break;
}
}
if (!trackTableEntry) return 0.;
if (!trackTableEntry) return 0;
/*
* Choose size.
*/
unsigned int sizes = nSizes;
if (!sizes) return 0.;
if (!sizes) return 0;
if (sizes == 1) return trackTableEntry->get_value (base, 0, sizes);
hb_array_t<const F16DOT16> size_table ((base+sizeTable).arrayZ, sizes);

Loading…
Cancel
Save