Commit 38a6d6fb authored by Behdad Esfahbod's avatar Behdad Esfahbod

Fix possible div-by-zero

parent 0ed241cb
......@@ -1310,7 +1310,7 @@ FcFreeTypeQueryFace (const FT_Face face,
{
double value = instance->coords[i] / (double) (1 << 16);
double default_value = master->axis[i].def / (double) (1 << 16);
double mult = value / default_value;
double mult = default_value ? value / default_value : 1;
//printf ("named-instance, axis %d tag %lx value %g\n", i, master->axis[i].tag, value);
switch (master->axis[i].tag)
{
......
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