Revision: 29158
          http://sourceforge.net/p/bibdesk/svn/29158
Author:   hofman
Date:     2025-04-21 15:01:40 +0000 (Mon, 21 Apr 2025)
Log Message:
-----------
use local variable

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-21 
15:00:31 UTC (rev 29157)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2025-04-21 
15:01:40 UTC (rev 29158)
@@ -2464,7 +2464,7 @@
             i = [self _indexForGridRow:r column:c];
 
             // if we're creating a drag image, only draw selected icons
-            if (NSNotFound != i && ((FVDrawSelected & drawOption) == 0 || 
[_selectionIndexes containsIndex:i])) {
+            if (NSNotFound != i && (drawView || [_selectionIndexes 
containsIndex:i])) {
             
                 NSRect fileRect = [self _rectOfIconInRow:r column:c];
                 
@@ -2471,7 +2471,7 @@
                 // allow some extra for the shadow (-5)
                 NSRect textRect = [self _rectOfTextForIconRect:fileRect];
                 // always draw icon and text together, as they may overlap due 
to shadow and finder label, and redrawing a part may look odd
-                BOOL willDrawIcon = (FVDrawSelected & drawOption) || 
[_contentView needsToDrawRect:NSUnionRect(NSInsetRect(fileRect, -2.0 * [self 
iconScale], -[self iconScale]), textRect)];
+                BOOL willDrawIcon = drawView == NO || [_contentView 
needsToDrawRect:NSUnionRect(NSInsetRect(fileRect, -2.0 * [self iconScale], 
-[self iconScale]), textRect)];
                                 
                 if (willDrawIcon) {
 

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

Reply via email to