mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 20:17:38 +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
|
@ -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…
Add table
Add a link
Reference in a new issue