From: <ho...@us...> - 2017-05-16 17:12:59
|
Revision: 9418 http://sourceforge.net/p/skim-app/code/9418 Author: hofman Date: 2017-05-16 17:12:57 +0000 (Tue, 16 May 2017) Log Message: ----------- compare sizes, they're integral so rounding should not be a problem Modified Paths: -------------- trunk/SKMainWindowController.m Modified: trunk/SKMainWindowController.m =================================================================== --- trunk/SKMainWindowController.m 2017-05-16 17:10:48 UTC (rev 9417) +++ trunk/SKMainWindowController.m 2017-05-16 17:12:57 UTC (rev 9418) @@ -2545,7 +2545,7 @@ [thumbnail setImage:image]; - if (fabs(newSize.width - oldSize.width) > 1.0 || fabs(newSize.height - oldSize.height) > 1.0) + if (NSEqualSizes(oldSize, newSize) == 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. |