Revision: 15857
http://sourceforge.net/p/skim-app/code/15857
Author: hofman
Date: 2025-12-11 10:42:27 +0000 (Thu, 11 Dec 2025)
Log Message:
-----------
reload data columns and rows for find table when font changes, rather than
faking KVO updates. This also fixes page column resize bug.
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2025-12-11 10:24:21 UTC (rev 15856)
+++ trunk/SKMainWindowController.m 2025-12-11 10:42:27 UTC (rev 15857)
@@ -825,10 +825,6 @@
[rightSideController.noteOutlineView setFont:font];
[leftSideController.findTableView setFont:font];
[leftSideController.groupedFindTableView setFont:font];
- if ([searchResults count]) {
- [searchResults
makeObjectsPerformSelector:@selector(willChangeValueForKey:)
withObject:@"contextString"];
- [searchResults
makeObjectsPerformSelector:@selector(didChangeValueForKey:)
withObject:@"contextString"];
- }
}
- (void)updatePageLabelsAndOutlineForExpansionState:(NSDictionary *)info {
@@ -2676,6 +2672,8 @@
} else if ([keyPath isEqualToString:SKTableFontSizeKey]) {
[self updateTableFont];
[self updatePageColumnWidthForTableViews:[NSArray
arrayWithObjects:leftSideController.tocOutlineView,
rightSideController.noteOutlineView, leftSideController.findTableView,
leftSideController.groupedFindTableView, nil]];
+ if ([groupedSearchResults count])
+ [leftSideController.findTableView
reloadDataForRowIndexes:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(1,
[searchResults count] - 1)] columnIndexes:[NSIndexSet
indexSetWithIndexesInRange:NSMakeRange(0, 2)]];
}
} else if (context == &SKMainWindowAppObservationContext) {
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