Revision: 16476
http://sourceforge.net/p/skim-app/code/16476
Author: hofman
Date: 2026-09-14 14:46:15 +0000 (Mon, 14 Sep 2026)
Log Message:
-----------
reorder condition clauses
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2026-09-14 14:43:18 UTC (rev 16475)
+++ trunk/SKMainWindowController.m 2026-09-14 14:46:15 UTC (rev 16476)
@@ -331,15 +331,15 @@
[leftSideController setMainController:self];
view = [leftSideController view];
width = [savedNormalSetup objectForKey:LEFTSIDEPANEWIDTH_KEY] ?: [sud
objectForKey:SKLeftSidePaneWidthKey];
- if (width && [width doubleValue] > 0.0) {
+ if (width == nil) {
+ frame.size.width -= NSWidth([view frame]) + 1.0;
+ } else if ([width doubleValue] > 0.0) {
NSSize size = [view frame].size;
size.width = MAX(MIN_SIDE_PANE_WIDTH, [width doubleValue]);
[view setFrameSize:size];
frame.size.width -= size.width + 1.0;
- } else if (width) {
+ } else {
leftCollapsed = YES;
- } else {
- frame.size.width -= NSWidth([view frame]) + 1.0;
}
rightSideController = [[SKRightSideViewController alloc] init];
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