Revision: 12364
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12364&view=rev
Author: amaxwell
Date: 2008-01-08 08:55:04 -0800 (Tue, 08 Jan 2008)
Log Message:
-----------
Truncate size before comparison; this doesn't seem to be hit anyway
Modified Paths:
--------------
trunk/bibdesk_vendorsrc/amaxwell/FileView/FVQLIcon.m
Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVQLIcon.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVQLIcon.m 2008-01-08
16:54:35 UTC (rev 12363)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVQLIcon.m 2008-01-08
16:55:04 UTC (rev 12364)
@@ -147,7 +147,15 @@
NSSize currentSize =
NSMakeSize(CGImageGetWidth(_fullImageRef), CGImageGetHeight(_fullImageRef));
- if (NSEqualSizes(currentSize, _desiredSize) == NO) {
+ NSSize targetSize;
+#if __LP64__
+ targetSize.width = trunc(_desiredSize.width);
+ targetSize.height = trunc(_desiredSize.height);
+#else
+ targetSize.width = truncf(_desiredSize.width);
+ targetSize.height = truncf(_desiredSize.height);
+#endif
+ if (NSEqualSizes(currentSize, targetSize) == NO) {
CGImageRelease(_fullImageRef);
_fullImageRef = NULL;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit