Don't try to get the advancement for GSAttachmentGlyph.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40272 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2016-12-18 11:58:31 +00:00
parent ca8abf4c27
commit 2b401268fc
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2016-12-18 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSLayoutManager.m: Don't try to get the advancement for
GSAttachmentGlyph.
* Source/NSTableView.m: Protect against rowHeigh being zero.
2016-12-17 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Additions/GNUstepGUI/GSToolbarView.h

View file

@ -3231,7 +3231,7 @@ forStartingGlyphAtIndex: (NSUInteger)glyph
for (i=0; i<length; i++)
{
if (glyph_list[i] != NSControlGlyph)
if ((glyph_list[i] != NSControlGlyph) && (glyph_list[i] != GSAttachmentGlyph))
{
advances[i] = [run->font advancementForGlyph: glyph_list[i]];
}

View file

@ -4425,6 +4425,10 @@ This method is deprecated, use -columnIndexesInRect:. */
{
return -1;
}
else if (_rowHeight == 0.0)
{
return -1;
}
else
{
NSInteger return_value;