* Source/GSCharacterPanel.m (-characterForRow:): Fix off-by-1 error

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33473 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2011-07-07 06:48:31 +00:00
parent 1f27e0ce61
commit cc536ac529
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2011-07-07 Eric Wasylishen <ewasylishen@gmail.com>
* Source/GSCharacterPanel.m (-characterForRow:): Fix off-by-1 error
2011-07-06 Eric Wasylishen <ewasylishen@gmail.com>
* Tests/gui/NSView/NSView_autoresize_and_rounding.m:

View file

@ -259,7 +259,7 @@ static NSIndexSet *CodepointsWithNameContainingSubstring(NSString *str)
- (NSString *)characterForRow: (NSInteger)row
{
if (row > 0 && row < [visibleCodepoints count])
if (row >= 0 && row < [visibleCodepoints count])
{
UChar32 utf32 = [self codepointAtVisibleRow: row];
UChar utf16buf[2];