Author: fredkiefer
Date: Sat Jan 31 19:19:29 2015
New Revision: 38312
URL: http://svn.gna.org/viewcvs/gnustep?rev=38312&view=rev
Log:
* Source/GSTextStorage.m
* Source/NSSpellChecker.m
Two small cleanups.
Patch by Marat Ibadinov <[email protected]>
* Source/NSLayoutManager.m
Changed == to >= to fix a crash when layout_char is beyond the
length of the string.
Patch by Paul Landers <[email protected]>.
Modified:
libs/gui/trunk/ChangeLog
libs/gui/trunk/Source/GSTextStorage.m
libs/gui/trunk/Source/NSLayoutManager.m
libs/gui/trunk/Source/NSSpellChecker.m
Modified: libs/gui/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/ChangeLog?rev=38312&r1=38311&r2=38312&view=diff
==============================================================================
--- libs/gui/trunk/ChangeLog (original)
+++ libs/gui/trunk/ChangeLog Sat Jan 31 19:19:29 2015
@@ -1,7 +1,18 @@
+2015-01-31 Fred Kiefer <[email protected]>
+
+ * Source/GSTextStorage.m
+ * Source/NSSpellChecker.m
+ Two small cleanups.
+ Patch by Marat Ibadinov <[email protected]>
+ * Source/NSLayoutManager.m
+ Changed == to >= to fix a crash when layout_char is beyond the
+ length of the string.
+ Patch by Paul Landers <[email protected]>.
+
2015-01-23 Fred Kiefer <[email protected]>
* Source/NSBitmapImageRep.m (-copyWithZone): Changed the call from
- -copyWithZone: to -mutableCopyWithZone:.
+ -copyWithZone: to -mutableCopyWithZone:.
* Tests/gui/NSBitmapImageRep/testcopy.m: Test for this change
Patch by Josh Freeman <tedge>.
Modified: libs/gui/trunk/Source/GSTextStorage.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/GSTextStorage.m?rev=38312&r1=38311&r2=38312&view=diff
==============================================================================
--- libs/gui/trunk/Source/GSTextStorage.m (original)
+++ libs/gui/trunk/Source/GSTextStorage.m Sat Jan 31 19:19:29 2015
@@ -681,7 +681,7 @@
if (range.length == 0)
{
- NSWarnMLog(@"Attempt to set attribute for zero-length range", 0);
+ NSWarnMLog(@"Attempt to set attribute for zero-length range");
return;
}
if (attributes == nil)
Modified: libs/gui/trunk/Source/NSLayoutManager.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSLayoutManager.m?rev=38312&r1=38311&r2=38312&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSLayoutManager.m (original)
+++ libs/gui/trunk/Source/NSLayoutManager.m Sat Jan 31 19:19:29 2015
@@ -2637,7 +2637,7 @@
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)
Modified: libs/gui/trunk/Source/NSSpellChecker.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSSpellChecker.m?rev=38312&r1=38311&r2=38312&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSSpellChecker.m (original)
+++ libs/gui/trunk/Source/NSSpellChecker.m Sat Jan 31 19:19:29 2015
@@ -62,7 +62,7 @@
#import "GNUstepGUI/GSServicesManager.h"
// 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.
// The protocol is defined here so that the outside world does not
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs