diff --git a/src/OT/Var/VARC/VARC.hh b/src/OT/Var/VARC/VARC.hh index d7142b4a1..3d288804d 100644 --- a/src/OT/Var/VARC/VARC.hh +++ b/src/OT/Var/VARC/VARC.hh @@ -124,7 +124,7 @@ struct VARC return true; (*edges_left)--; - if (visited->has (glyph)) + if (visited->has (glyph) || visited->in_error ()) return true; visited->add (glyph);