Revision: 28280
http://sourceforge.net/p/bibdesk/svn/28280
Author: hofman
Date: 2023-06-03 16:21:16 +0000 (Sat, 03 Jun 2023)
Log Message:
-----------
fix determination of drop operation, column mode was inverted
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2023-06-03
13:41:30 UTC (rev 28279)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2023-06-03
16:21:16 UTC (rev 28280)
@@ -1466,7 +1466,7 @@
start = [self _leftMargin];
if (point.x <= start) {
- if (dropOp == NULL || isColumn == NO)
+ if (dropOp == NULL || isColumn)
return NO;
if (colIndex)
*colIndex = 0;
@@ -1477,11 +1477,11 @@
if (point.x < (start + _iconSize.width)) {
if (colIndex)
*colIndex = idx;
- if (dropOp && isColumn)
+ if (dropOp && isColumn == NO)
*dropOp = FVDropOn;
break;
} else if (point.x <= (start + columnWidth)) {
- if (dropOp == NULL || isColumn == NO)
+ if (dropOp == NULL || isColumn)
return NO;
if (colIndex)
*colIndex = idx;
@@ -1497,7 +1497,7 @@
start = [self _topMargin];
if (point.y <= start) {
- if (dropOp == NULL || isColumn)
+ if (dropOp == NULL || isColumn == NO)
return NO;
if (rowIndex)
*rowIndex = 0;
@@ -1509,11 +1509,11 @@
if (point.y < (start + _iconSize.height)) {
if (rowIndex)
*rowIndex = idx;
- if (dropOp && isColumn == NO)
+ if (dropOp && isColumn)
*dropOp = FVDropOn;
break;
} else if (point.y <= (start + rowHeight)) {
- if (dropOp == NULL || isColumn)
+ if (dropOp == NULL || isColumn == NO)
return NO;
if (rowIndex)
*rowIndex = idx;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit