Revision: 13040 http://sourceforge.net/p/skim-app/code/13040 Author: hofman Date: 2022-07-20 15:56:58 +0000 (Wed, 20 Jul 2022) Log Message: ----------- don't nest clang disgnostic changes
Modified Paths: -------------- trunk/SKBasePDFView.m Modified: trunk/SKBasePDFView.m =================================================================== --- trunk/SKBasePDFView.m 2022-07-20 15:48:49 UTC (rev 13039) +++ trunk/SKBasePDFView.m 2022-07-20 15:56:58 UTC (rev 13040) @@ -249,11 +249,11 @@ [super setCurrentSelection:currentSelection]; } +static inline BOOL hasHorizontalLayout(PDFView *pdfView) { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpartial-availability" - -static inline BOOL hasHorizontalLayout(PDFView *pdfView) { return RUNNING_AFTER(10_12) && [pdfView displayDirection] == kPDFDisplayDirectionHorizontal && [pdfView displayMode] == kPDFDisplaySinglePageContinuous; +#pragma clang diagnostic pop } - (void)horizontallyGoToPage:(PDFPage *)page { @@ -275,8 +275,6 @@ [clipView scrollToPoint:[clipView constrainBoundsRect:bounds].origin]; } -#pragma clang diagnostic pop - - (void)goToPreviousPage:(id)sender { if (hasHorizontalLayout(self) && [self canGoToPreviousPage]) { PDFDocument *doc = [self document]; 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