diff --git a/libraries/pico_vector/alright-fonts.h b/libraries/pico_vector/alright-fonts.h index c88826f05..2e02b540b 100644 --- a/libraries/pico_vector/alright-fonts.h +++ b/libraries/pico_vector/alright-fonts.h @@ -350,7 +350,7 @@ void af_render(af_face_t *face, const char *text, size_t tlen, float max_line_wi pp_mat3_translate(&caret_transform, (max_line_width - line_width), 0); } - pp_mat3_t final_transform = *old; + pp_mat3_t final_transform = old ? *old : pp_mat3_identity(); pp_mat3_mul(&final_transform, &caret_transform); pp_transform(&final_transform);