mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:20:38 +00:00
* 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:
parent
1f27e0ce61
commit
cc536ac529
2 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue