Revision: 29105 http://sourceforge.net/p/bibdesk/svn/29105 Author: hofman Date: 2025-04-15 15:27:11 +0000 (Tue, 15 Apr 2025) Log Message: ----------- Don't draw drop highlight when invalidating drop
Modified Paths: -------------- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m =================================================================== --- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-15 14:42:47 UTC (rev 29104) +++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-15 15:27:11 UTC (rev 29105) @@ -2041,25 +2041,29 @@ } break; case FVDropBefore: - aRect = [self _rectOfIconAtIndex:dropIndex]; - // aRect size is 6, and should be centered between icons - if (isColumn) { - aRect.origin.y -= 6.0; - aRect.size.height = 6.0; - } else { - aRect.origin.x -= _padding.width / 2 + 3.0; - aRect.size.width = 6.0; + if (dropIndex != NSNotFound) { + aRect = [self _rectOfIconAtIndex:dropIndex]; + // aRect size is 6, and should be centered between icons + if (isColumn) { + aRect.origin.y -= 6.0; + aRect.size.height = 6.0; + } else { + aRect.origin.x -= _padding.width / 2 + 3.0; + aRect.size.width = 6.0; + } } break; case FVDropAfter: - aRect = [self _rectOfIconAtIndex:dropIndex]; - // aRect size is 6, and should be centered between icons - if (isColumn) { - aRect.origin.y += _iconSize.height + _padding.height - 6.0; - aRect.size.height = 6.0; - } else { - aRect.origin.x += _iconSize.width + _padding.width / 2 - 3.0; - aRect.size.width = 6.0; + if (dropIndex != NSNotFound) { + aRect = [self _rectOfIconAtIndex:dropIndex]; + // aRect size is 6, and should be centered between icons + if (isColumn) { + aRect.origin.y += _iconSize.height + _padding.height - 6.0; + aRect.size.height = 6.0; + } else { + aRect.origin.x += _iconSize.width + _padding.width / 2 - 3.0; + aRect.size.width = 6.0; + } } break; default: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit