Revision: 25529 http://sourceforge.net/p/bibdesk/svn/25529 Author: hofman Date: 2021-02-02 14:28:36 +0000 (Tue, 02 Feb 2021) Log Message: ----------- Make sure tranmsformed size has positive dimensions, transforming by CG does not do this
Modified Paths: -------------- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVIcon_Private.m Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVIcon_Private.m =================================================================== --- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVIcon_Private.m 2021-02-02 10:43:05 UTC (rev 25528) +++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVIcon_Private.m 2021-02-02 14:28:36 UTC (rev 25529) @@ -169,7 +169,8 @@ NSSize FVSizeForRectInContext(const NSRect rect, CGContextRef context) { - return NSSizeFromCGSize(CGRectApplyAffineTransform(NSRectToCGRect(rect), CGContextGetCTM(context)).size); + CGSize size = CGRectApplyAffineTransform(NSRectToCGRect(rect), CGContextGetCTM(context)).size; + return NSMakeSize(fabs(size.width), fabs(size.height)); } // handles centering and aspect ratio, since most of our icons have weird sizes, but they'll be drawn in a square box This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit