Revision: 14156
http://sourceforge.net/p/skim-app/code/14156
Author: hofman
Date: 2024-03-29 10:35:17 +0000 (Fri, 29 Mar 2024)
Log Message:
-----------
check whether image rep is non nil
Modified Paths:
--------------
trunk/SKSnapshotWindowController.m
Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m 2024-03-28 15:30:30 UTC (rev 14155)
+++ trunk/SKSnapshotWindowController.m 2024-03-29 10:35:17 UTC (rev 14156)
@@ -647,10 +647,12 @@
windowImage = [[NSImage alloc] initWithCGImage:cgImage
size:windowRect.size];
CGImageRelease(cgImage);
} else {
+ windowImage = [[NSImage alloc] initWithSize:windowRect.size];
NSBitmapImageRep *imageRep = [[[window contentView] superview]
bitmapImageRepCachingDisplay];
- roundCornersAndApplyFiltersToImageRep(imageRep, filters, [window
contentLayoutRect]);
- windowImage = [[NSImage alloc] initWithSize:windowRect.size];
- [windowImage addRepresentation:imageRep];
+ if (imageRep) {
+ roundCornersAndApplyFiltersToImageRep(imageRep, filters,
[window contentLayoutRect]);
+ [windowImage addRepresentation:imageRep];
+ }
}
SKAnimatedBorderlessWindow *miniaturizeWindow =
[[SKAnimatedBorderlessWindow alloc] initWithContentRect:miniaturize ?
windowRect : dockRect];
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