Tiny fix for bug found by valgrind.

Make sure nominal gets always set for a glyph.
This commit is contained in:
fredkiefer 2018-02-05 23:25:36 +01:00
parent 712e7a4e15
commit caa58cf72b
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2018-02-05 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSHorizontalTypesetter.m (-layoutLineNewParagraph:): Make
sure nominal gets always set.
2018-02-04 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSAlert.m (NSBeginAlertSheet): Move closing the sheet from

View file

@ -250,6 +250,7 @@ the last time or not, we wouldn't need to clear the cache every time */
g->dont_show = NO;
g->outside_line_frag = NO;
g->nominal = YES;
// FIXME: This assumes the layout manager implements this GNUstep extension
g->size = [curLayoutManager advancementForGlyphAtIndex: cache_base + cache_length];