Revision: 12279
http://sourceforge.net/p/skim-app/code/12279
Author: hofman
Date: 2021-04-11 23:10:43 +0000 (Sun, 11 Apr 2021)
Log Message:
-----------
Fix use of constants
Modified Paths:
--------------
trunk/SKMainWindowController_UI.m
trunk/SKNotesDocument.m
Modified: trunk/SKMainWindowController_UI.m
===================================================================
--- trunk/SKMainWindowController_UI.m 2021-04-11 23:04:13 UTC (rev 12278)
+++ trunk/SKMainWindowController_UI.m 2021-04-11 23:10:43 UTC (rev 12279)
@@ -844,7 +844,7 @@
if ([(PDFAnnotation *)item type] == nil) {
rowHeight = [cell cellSizeForBounds:NSMakeRect(0.0, 0.0,
fmax(10.0, NSWidth([ov frameOfCellAtColumn:-1 row:0]) - [ov
indentationPerLevel]), CGFLOAT_MAX)].height;
} else if ([tableColumn isHidden] == NO) {
- CGFloat indentation = RUNNING_AFTER(10_15) ?
COLUMN_INDENTATION_OLD : COLUMN_INDENTATION;
+ CGFloat indentation = RUNNING_AFTER(10_15) ?
COLUMN_INDENTATION : COLUMN_INDENTATION_OLD;
rowHeight = [cell cellSizeForBounds:NSMakeRect(0.0, 0.0,
[tableColumn width] - indentation, CGFLOAT_MAX)].height;
}
rowHeight = fmax(rowHeight, [ov rowHeight]) + EXTRA_ROW_HEIGHT;
@@ -1097,7 +1097,7 @@
CGFloat height = 0.0, rowHeight = [rightSideController.noteOutlineView
rowHeight];
NSTableColumn *tableColumn = [rightSideController.noteOutlineView
tableColumnWithIdentifier:NOTE_COLUMNID];
id cell = [tableColumn dataCell];
- CGFloat indentation = RUNNING_AFTER(10_15) ? COLUMN_INDENTATION_OLD :
COLUMN_INDENTATION;
+ CGFloat indentation = RUNNING_AFTER(10_15) ? COLUMN_INDENTATION :
COLUMN_INDENTATION_OLD;
NSRect rect = NSMakeRect(0.0, 0.0, [tableColumn width] - indentation,
CGFLOAT_MAX);
NSRect fullRect = NSMakeRect(0.0, 0.0,
NSWidth([rightSideController.noteOutlineView frameOfCellAtColumn:-1 row:0]) -
[rightSideController.noteOutlineView indentationPerLevel], CGFLOAT_MAX);
NSMutableIndexSet *rowIndexes = nil;
Modified: trunk/SKNotesDocument.m
===================================================================
--- trunk/SKNotesDocument.m 2021-04-11 23:04:13 UTC (rev 12278)
+++ trunk/SKNotesDocument.m 2021-04-11 23:10:43 UTC (rev 12279)
@@ -535,7 +535,7 @@
CGFloat height,rowHeight = [outlineView rowHeight];
NSTableColumn *tableColumn = [outlineView
tableColumnWithIdentifier:NOTE_COLUMNID];
id cell = [tableColumn dataCell];
- CGFloat indentation = RUNNING_AFTER(10_15) ? COLUMN_INDENTATION_OLD :
COLUMN_INDENTATION;
+ CGFloat indentation = RUNNING_AFTER(10_15) ? COLUMN_INDENTATION :
COLUMN_INDENTATION_OLD;
NSRect rect = NSMakeRect(0.0, 0.0, [tableColumn width] - indentation,
CGFLOAT_MAX);
NSRect fullRect = NSMakeRect(0.0, 0.0, NSWidth([outlineView
frameOfCellAtColumn:-1 row:0]) - [outlineView indentationPerLevel],
CGFLOAT_MAX);
NSMutableIndexSet *rowIndexes = nil;
@@ -812,7 +812,7 @@
if ([(PDFAnnotation *)item type] == nil) {
rowHeight = [cell cellSizeForBounds:NSMakeRect(0.0, 0.0,
fmax(10.0, NSWidth([ov frameOfCellAtColumn:-1 row:0]) - [ov
indentationPerLevel]), CGFLOAT_MAX)].height;
} else if ([tableColumn isHidden] == NO) {
- CGFloat indentation = RUNNING_AFTER(10_15) ?
COLUMN_INDENTATION_OLD : COLUMN_INDENTATION;
+ CGFloat indentation = RUNNING_AFTER(10_15) ?
COLUMN_INDENTATION : COLUMN_INDENTATION_OLD;
rowHeight = [cell cellSizeForBounds:NSMakeRect(0.0, 0.0,
[tableColumn width] - indentation, CGFLOAT_MAX)].height;
}
rowHeight = fmax(rowHeight, [ov rowHeight]) + EXTRA_ROW_HEIGHT;
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