safer access
This commit is contained in:
parent
e66afd23b4
commit
c36483ab21
1 changed files with 2 additions and 2 deletions
|
@ -358,8 +358,8 @@ bool Atlas::getGlyphGeometryPair(const unsigned char character,
|
|||
const auto & closestVariationDown = variationSteps[closestIndexDown];
|
||||
GlyphVariationKey glyphKeyUp = {character, closestVariationUp};
|
||||
GlyphVariationKey glyphKeyDown = {character, closestVariationDown};
|
||||
int index_a = glyphGeometryMap[glyphKeyDown];
|
||||
int index_b = glyphGeometryMap[glyphKeyUp];
|
||||
int index_a = glyphGeometryMap.at(glyphKeyDown);
|
||||
int index_b = glyphGeometryMap.at(glyphKeyUp);
|
||||
a = glyphGeometries[index_a];
|
||||
b = glyphGeometries[index_b];
|
||||
|
||||
|
|
Loading…
Reference in a new issue