Revision: 14222
http://sourceforge.net/p/skim-app/code/14222
Author: hofman
Date: 2024-04-19 09:37:09 +0000 (Fri, 19 Apr 2024)
Log Message:
-----------
use correct type of rect
Modified Paths:
--------------
trunk/SKBasePDFView.m
trunk/SKMainWindowController_FullScreen.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2024-04-19 09:35:28 UTC (rev 14221)
+++ trunk/SKBasePDFView.m 2024-04-19 09:37:09 UTC (rev 14222)
@@ -369,7 +369,7 @@
r.origin.y = round(CGRectGetMinY(rect));
r.size.width = round(CGRectGetMaxX(rect)) - r.origin.x;
r.size.height = round(CGRectGetMaxY(rect)) - r.origin.y;
- return CGRectGetWidth(r) > 0.0 && CGRectGetHeight(r) > 0.0 ?
CGContextConvertRectToUserSpace(context, r) : NSZeroRect;
+ return CGRectGetWidth(r) > 0.0 && CGRectGetHeight(r) > 0.0 ?
CGContextConvertRectToUserSpace(context, r) : CGRectZero;
}
- (void)drawPagesInRect:(NSRect)rect toContext:(CGContextRef)context {
Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m 2024-04-19 09:35:28 UTC (rev
14221)
+++ trunk/SKMainWindowController_FullScreen.m 2024-04-19 09:37:09 UTC (rev
14222)
@@ -352,7 +352,7 @@
r.origin.y = round(CGRectGetMinY(rect));
r.size.width = round(CGRectGetMaxX(rect)) - r.origin.x;
r.size.height = round(CGRectGetMaxY(rect)) - r.origin.y;
- return CGRectGetWidth(r) > 0.0 && CGRectGetHeight(r) > 0.0 ?
CGContextConvertRectToUserSpace(context, r) : NSZeroRect;
+ return CGRectGetWidth(r) > 0.0 && CGRectGetHeight(r) > 0.0 ?
CGContextConvertRectToUserSpace(context, r) : CGRectZero;
}
- (void)displayStaticContentInPresentationWindow:(NSWindow *)window {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit