Revision: 15747
http://sourceforge.net/p/skim-app/code/15747
Author: hofman
Date: 2025-11-02 15:44:04 +0000 (Sun, 02 Nov 2025)
Log Message:
-----------
no need for local variable
Modified Paths:
--------------
trunk/SKThumbnailView.m
Modified: trunk/SKThumbnailView.m
===================================================================
--- trunk/SKThumbnailView.m 2025-11-01 18:16:30 UTC (rev 15746)
+++ trunk/SKThumbnailView.m 2025-11-02 15:44:04 UTC (rev 15747)
@@ -80,8 +80,7 @@
- (void)commonInit {
NSRect bounds = [self bounds];
- CGFloat textSpace = TEXT_SPACE;
- NSRect rect = NSOffsetRect(NSInsetRect(bounds, MARGIN, MARGIN + 0.5 *
textSpace), 0.0, 0.5 * textSpace);
+ NSRect rect = NSOffsetRect(NSInsetRect(bounds, MARGIN, MARGIN + 0.5 *
TEXT_SPACE), 0.0, 0.5 * TEXT_SPACE);
imageView = [[SKThumbnailImageView alloc] initWithFrame:rect];
[imageView setImageScaling:NSImageScaleProportionallyUpOrDown];
[imageView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
@@ -95,7 +94,7 @@
[labelView setSelectable:NO];
[labelView setAlignment:NSTextAlignmentCenter];
[labelView setAutoresizingMask:NSViewWidthSizable | NSViewMaxYMargin];
- rect = NSInsetRect(bounds, TEXT_MARGIN, textSpace);
+ rect = NSInsetRect(bounds, TEXT_MARGIN, TEXT_SPACE);
rect.size.height = [[labelView cell] cellSize].height;
rect.origin.y -= NSHeight(rect);
[labelView setFrame:rect];
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