NSLayoutManager: advancementbuf[0] was not being filled. Most backends, including cairo, ignore advancements, so the bug was not immediately apparent until opal backend started using the advancements.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37100 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Ivan Vučica 2013-09-17 21:58:21 +00:00
parent 61f497d174
commit 42f7c46547
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2013-09-17 Ivan Vucica <ivan@vucica.net>
* Source/NSLayoutManager.m:
advancementbuf[0] was not being filled. Most backends, including cairo,
ignore advancements, so the bug was not immediately apparent until
opal backend started using the advancements.
2013-09-17 16:36-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Headers/AppKit/NSMenu.h: Add NSMenuDelegate

View file

@ -1851,6 +1851,7 @@ attachmentSize(linefrag_t *lf, NSUInteger glyphIndex)
if (!gbuf_len)
{
gbuf[0] = glyph->g;
advancementbuf[0] = [f advancementForGlyph: glyph->g];
gbuf_point = p;
gbuf_len = 1;
}