Changed checking for highlighted item

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18405 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Sergii Stoian 2004-01-13 11:14:50 +00:00
parent e5665fbdda
commit c33ef3101f

View file

@ -1272,7 +1272,7 @@ _addLeftBorderOffsetToRect(NSRect aRect)
* case that we choose an action in a transient window which
* has already dissappeared.
*/
if (indexOfActionToExecute == _highlightedItemIndex)
if (_highlightedItemIndex >= 0)
{
[self setHighlightedItemIndex: -1];
}