Revision: 9419
http://sourceforge.net/p/skim-app/code/9419
Author: hofman
Date: 2017-05-16 17:15:09 +0000 (Tue, 16 May 2017)
Log Message:
-----------
use single local variable
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2017-05-16 17:12:57 UTC (rev 9418)
+++ trunk/SKMainWindowController.m 2017-05-16 17:15:09 UTC (rev 9419)
@@ -2540,12 +2540,11 @@
dispatch_async(dispatch_get_main_queue(), ^{
NSUInteger pageIndex = [thumbnail pageIndex];
- NSSize oldSize = [thumbnail size];
- NSSize newSize = [image size];
+ BOOL sameSize = NSEqualSizes([image size], [thumbnail size]);
[thumbnail setImage:image];
- if (NSEqualSizes(oldSize, newSize) == NO)
+ if (sameSize == NO)
[leftSideController.thumbnailTableView
noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndex:pageIndex]];
[leftSideController.thumbnailTableView
setNeedsDisplayInRect:[leftSideController.thumbnailTableView
frameOfCellAtColumn:0 row:pageIndex]];
});
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit