diff --git a/src/ygt/ygModel.py b/src/ygt/ygModel.py index 58a0176..6876f36 100644 --- a/src/ygt/ygModel.py +++ b/src/ygt/ygModel.py @@ -769,7 +769,7 @@ def has_hints(self, gname: str) -> bool: x_len = 0 if "y" in glyph_program and "points" in glyph_program["y"]: y_len = len(glyph_program["y"]["points"]) - if y_len == 0 and "x" in glyph_program and "points" in glyph_program["y"]: + if y_len == 0 and "x" in glyph_program and "points" in glyph_program["x"]: x_len = len(glyph_program["x"]["points"]) has_code = (y_len > 0 or x_len > 0) return any([has_code, "names" in glyph_program, "props" in glyph_program])