diff --git a/src/hb-aat-var-hvgl-table.cc b/src/hb-aat-var-hvgl-table.cc index 3664533d3..ea88a3a94 100644 --- a/src/hb-aat-var-hvgl-table.cc +++ b/src/hb-aat-var-hvgl-table.cc @@ -447,9 +447,6 @@ PartComposite::apply_to_transforms (hb_array_t> transform while (true) { - auto extremum_translation_delta = Null(TranslationDelta); - auto extremum_rotation_delta = Null(HBFLOAT32LE); - bool has_row_translation = extremum_translation_count && extremum_translation_indices->row == row; bool has_row_rotation = extremum_rotation_count && @@ -463,6 +460,9 @@ PartComposite::apply_to_transforms (hb_array_t> transform if (column == 2 * axisCount) break; + auto extremum_translation_delta = Null(TranslationDelta); + auto extremum_rotation_delta = Null(HBFLOAT32LE); + if (has_row_translation && extremum_translation_indices->column == column) {