mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Add fix to prevent iterating past the number of visible back views.
This commit is contained in:
parent
5666d7b7c2
commit
ac5b949f2a
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2021-10-27 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/GSToolbarView.m: Toolbar fixes to prevent the index
|
||||
from exceeding the number of visibleBackViews.
|
||||
|
||||
2021-10-27 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSScrollView.m: Add scrollview keys from TP merge.
|
||||
|
|
|
@ -291,7 +291,7 @@ static NSUInteger draggedItemIndex = NSNotFound;
|
|||
if (draggingLeft)
|
||||
{
|
||||
// dragging to the left of dragged item's current location
|
||||
for (index=0; index < draggedItemIndex; index++)
|
||||
for (index=0; index < draggedItemIndex && index < [visibleBackViews count]; index++)
|
||||
{
|
||||
itemRect = [[visibleBackViews objectAtIndex:index] frame];
|
||||
if (location.x < (itemRect.origin.x + (itemRect.size.width/2)))
|
||||
|
|
Loading…
Reference in a new issue