mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
Add code to break out of the loop if char_last has exceeded the end of the existing set of characters
This commit is contained in:
parent
58359b8de3
commit
cdc2aa0a80
2 changed files with 11 additions and 0 deletions
|
@ -9,6 +9,13 @@
|
|||
each glyph depending on mappings. Currently only identity mapping
|
||||
is supported.
|
||||
|
||||
2021-10-14 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/GSLayoutManager.m: In _generateGlyphsUpToGlyph:
|
||||
add code to break out of the loop
|
||||
if char_last is > glyphs->char_length
|
||||
>>>>>>> 5c7c12c77 (Add code to break out of the loop if char_last has exceeded the end of the existing set of characters)
|
||||
|
||||
2021-10-13 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Headers/AppKit/NSToolbar.h: Update to use formal protocol if
|
||||
|
|
|
@ -755,6 +755,10 @@ Fills in all glyph holes up to last. only looking at levels below level
|
|||
(last - glyphs->glyph_length) * (glyphs->char_length / (glyphs->glyph_length + 1));
|
||||
|
||||
[self _generateGlyphsUpToCharacter: char_last];
|
||||
|
||||
// Break out if we have passed the last character...
|
||||
if (char_last > glyphs->char_length)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue