Revision: 12420 http://sourceforge.net/p/skim-app/code/12420 Author: hofman Date: 2021-09-28 14:33:22 +0000 (Tue, 28 Sep 2021) Log Message: ----------- Add comment
Modified Paths: -------------- trunk/PDFView_SKExtensions.m Modified: trunk/PDFView_SKExtensions.m =================================================================== --- trunk/PDFView_SKExtensions.m 2021-09-28 14:24:03 UTC (rev 12419) +++ trunk/PDFView_SKExtensions.m 2021-09-28 14:33:22 UTC (rev 12420) @@ -274,6 +274,9 @@ } - (NSScrollView *)scrollView { + // don't go through the documentView, because that may not exist, + // e.g. in init or when the document is locked + // also when -documentView is called from -initWithCoder: it may crash return [self descendantOfClass:[NSScrollView class]]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit