* Source/GSTextStorage.m

* Source/NSSpellChecker.m
        Two small cleanups.
        Patch by Marat Ibadinov <ibadinov@me.com>
        * Source/NSLayoutManager.m
        Changed == to >= to fix a crash when layout_char is beyond the
        length of the string.
        Patch by Paul Landers <paul.landers@testplant.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38312 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2015-01-31 18:19:29 +00:00
parent 96d460cd9e
commit d3da3e9fea
4 changed files with 15 additions and 4 deletions

View file

@ -2637,7 +2637,7 @@ this file describes this.
if (!layout_char)
new_last_glyph = 0;
else if (layout_char == [_textStorage length])
else if (layout_char >= [_textStorage length])
new_last_glyph = [self numberOfGlyphs];
else
new_last_glyph = [self glyphRangeForCharacterRange: NSMakeRange(layout_char, 1)