Revision: 12677 http://sourceforge.net/p/skim-app/code/12677 Author: hofman Date: 2022-01-04 10:47:03 +0000 (Tue, 04 Jan 2022) Log Message: ----------- Call super only from one place
Modified Paths: -------------- trunk/SKPDFView.m Modified: trunk/SKPDFView.m =================================================================== --- trunk/SKPDFView.m 2022-01-03 23:02:43 UTC (rev 12676) +++ trunk/SKPDFView.m 2022-01-04 10:47:03 UTC (rev 12677) @@ -511,12 +511,10 @@ } - (void)drawPage:(PDFPage *)pdfPage { - if ([PDFView instancesRespondToSelector:@selector(drawPage:toContext:)]) { - // on 10.12 this should be called from drawPage:toContext: - [super drawPage:pdfPage]; - } else { - // Let PDFView do most of the hard work. - [super drawPage:pdfPage]; + // Let PDFView do most of the hard work. + [super drawPage:pdfPage]; + if ([PDFView instancesRespondToSelector:@selector(drawPage:toContext:)] == NO) { + // on 10.12+ this should be called from drawPage:toContext: [self drawPageHighlights:pdfPage toContext:[[NSGraphicsContext currentContext] CGContext]]; } } 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