Revision: 29185
http://sourceforge.net/p/bibdesk/svn/29185
Author: hofman
Date: 2025-04-24 14:10:30 +0000 (Thu, 24 Apr 2025)
Log Message:
-----------
draw grid for debuging only in view
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-24
13:47:00 UTC (rev 29184)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m 2025-04-24
14:10:30 UTC (rev 29185)
@@ -2546,15 +2546,17 @@
}
}
#if DEBUG_GRID
- [NSGraphicsContext saveGraphicsState];
- if ((c + r) % 2)
- [[NSColor redColor] setFill];
- else
- [[NSColor greenColor] setFill];
- NSFrameRect(NSMakeRect(DEFAULT_MARGIN.width + [self
_columnWidth] * c, DEFAULT_MARGIN.height + [self _rowHeight] * r, [self
_columnWidth], [self _rowHeight]));
- [[NSColor blueColor] setFill];
- NSFrameRect(NSUnionRect(NSInsetRect(fileRect, -shadowBlur,
0.0), NSInsetRect(textRect, 2.0, 0.0)));
- [NSGraphicsContext restoreGraphicsState];
+ if (drawView) {
+ [NSGraphicsContext saveGraphicsState];
+ if ((c + r) % 2)
+ [[NSColor redColor] setFill];
+ else
+ [[NSColor greenColor] setFill];
+ NSFrameRect(NSMakeRect(DEFAULT_MARGIN.width + [self
_columnWidth] * c, DEFAULT_MARGIN.height + [self _rowHeight] * r, [self
_columnWidth], [self _rowHeight]));
+ [[NSColor blueColor] setFill];
+ NSFrameRect(NSUnionRect(NSInsetRect(fileRect, -shadowBlur,
0.0), NSInsetRect(textRect, 2.0, 0.0)));
+ [NSGraphicsContext restoreGraphicsState];
+ }
#endif
}
}
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