mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 17:50:47 +00:00
* 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:
parent
96d460cd9e
commit
d3da3e9fea
4 changed files with 15 additions and 4 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,7 +1,18 @@
|
||||||
|
2015-01-31 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* 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>.
|
||||||
|
|
||||||
2015-01-23 Fred Kiefer <FredKiefer@gmx.de>
|
2015-01-23 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSBitmapImageRep.m (-copyWithZone): Changed the call from
|
* Source/NSBitmapImageRep.m (-copyWithZone): Changed the call from
|
||||||
-copyWithZone: to -mutableCopyWithZone:.
|
-copyWithZone: to -mutableCopyWithZone:.
|
||||||
* Tests/gui/NSBitmapImageRep/testcopy.m: Test for this change
|
* Tests/gui/NSBitmapImageRep/testcopy.m: Test for this change
|
||||||
Patch by Josh Freeman <tedge>.
|
Patch by Josh Freeman <tedge>.
|
||||||
|
|
||||||
|
|
|
@ -681,7 +681,7 @@ _attributesAtIndexEffectiveRange(
|
||||||
|
|
||||||
if (range.length == 0)
|
if (range.length == 0)
|
||||||
{
|
{
|
||||||
NSWarnMLog(@"Attempt to set attribute for zero-length range", 0);
|
NSWarnMLog(@"Attempt to set attribute for zero-length range");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (attributes == nil)
|
if (attributes == nil)
|
||||||
|
|
|
@ -2637,7 +2637,7 @@ this file describes this.
|
||||||
|
|
||||||
if (!layout_char)
|
if (!layout_char)
|
||||||
new_last_glyph = 0;
|
new_last_glyph = 0;
|
||||||
else if (layout_char == [_textStorage length])
|
else if (layout_char >= [_textStorage length])
|
||||||
new_last_glyph = [self numberOfGlyphs];
|
new_last_glyph = [self numberOfGlyphs];
|
||||||
else
|
else
|
||||||
new_last_glyph = [self glyphRangeForCharacterRange: NSMakeRange(layout_char, 1)
|
new_last_glyph = [self glyphRangeForCharacterRange: NSMakeRange(layout_char, 1)
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
#import "GNUstepGUI/GSServicesManager.h"
|
#import "GNUstepGUI/GSServicesManager.h"
|
||||||
|
|
||||||
// prototype for function to create name for server
|
// prototype for function to create name for server
|
||||||
NSString *GSSpellServerName(NSString *checkerDictionary, NSString *language);
|
extern NSString *GSSpellServerName(NSString *checkerDictionary, NSString *language);
|
||||||
|
|
||||||
// These are methods which we only want the NSSpellChecker to call.
|
// These are methods which we only want the NSSpellChecker to call.
|
||||||
// The protocol is defined here so that the outside world does not
|
// The protocol is defined here so that the outside world does not
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue