Revision: 28292
          http://sourceforge.net/p/bibdesk/svn/28292
Author:   hofman
Date:     2023-06-06 14:32:56 +0000 (Tue, 06 Jun 2023)
Log Message:
-----------
simplify calculation

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-06 
14:16:14 UTC (rev 28291)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2023-06-06 
14:32:56 UTC (rev 28292)
@@ -2329,12 +2329,12 @@
     bounds.origin.y += [self _topMargin];
     
     rmin = (NSMinY(aRect) - NSMinY(bounds)) / [self _rowHeight];
-    rmax = (NSMinY(aRect) - NSMinY(bounds)) / [self _rowHeight] + 
NSHeight(aRect) / [self _rowHeight];
+    rmax = (NSMaxY(aRect) - NSMinY(bounds)) / [self _rowHeight];
     // add 1 to account for integer truncation
     rmax = MIN(rmax + 1, [self numberOfRows]);
     
     cmin = (NSMinX(aRect) - NSMinX(bounds)) / [self _columnWidth];
-    cmax = (NSMinX(aRect) - NSMinX(bounds)) / [self _columnWidth] + 
NSWidth(aRect) / [self _columnWidth];
+    cmax = (NSMaxX(aRect) - NSMinX(bounds)) / [self _columnWidth];
     // add 1 to account for integer truncation
     cmax = MIN(cmax + 1, [self numberOfColumns]);
 

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

Reply via email to