[shape-plan] Return empty plan if buffer direction is invalid
Happens if buffer creation failed.
This commit is contained in:
parent
a441c6c16b
commit
eba626ff6a
|
@ -231,7 +231,8 @@ hb_shape_plan_create2 (hb_face_t *face,
|
||||||
num_coords,
|
num_coords,
|
||||||
shaper_list);
|
shaper_list);
|
||||||
|
|
||||||
assert (props->direction != HB_DIRECTION_INVALID);
|
if (unlikely (props->direction == HB_DIRECTION_INVALID))
|
||||||
|
return hb_shape_plan_get_empty ();
|
||||||
|
|
||||||
hb_shape_plan_t *shape_plan;
|
hb_shape_plan_t *shape_plan;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue