Revision: 14182
http://sourceforge.net/p/skim-app/code/14182
Author: hofman
Date: 2024-04-04 22:58:37 +0000 (Thu, 04 Apr 2024)
Log Message:
-----------
no need to get page for synctex
Modified Paths:
--------------
trunk/SKMainDocument.m
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2024-04-04 22:48:53 UTC (rev 14181)
+++ trunk/SKMainDocument.m 2024-04-04 22:58:37 UTC (rev 14182)
@@ -1531,9 +1531,8 @@
- (void)synchronizerFoundLocation:(NSPoint)point
atPageIndex:(NSUInteger)pageIndex options:(SKPDFSynchronizerOption)options {
PDFDocument *pdfDoc = [self pdfDocument];
if (pageIndex < [pdfDoc pageCount]) {
- PDFPage *page = [pdfDoc pageAtIndex:pageIndex];
if ((options & SKPDFSynchronizerFlippedMask))
- point.y = NSMaxY([page boundsForBox:kPDFDisplayBoxMediaBox]) -
point.y;
+ point.y = NSMaxY([[pdfDoc pageAtIndex:pageIndex]
boundsForBox:kPDFDisplayBoxMediaBox]) - point.y;
[[self pdfView] displayLineAtPoint:point inPageAtIndex:pageIndex
select:(options & SKPDFSynchronizerSelectMask) != 0 showReadingBar:(options &
SKPDFSynchronizerShowReadingBarMask) != 0];
}
}
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