Revision: 15581 http://sourceforge.net/p/skim-app/code/15581 Author: hofman Date: 2025-07-02 08:49:06 +0000 (Wed, 02 Jul 2025) Log Message: ----------- get page once
Modified Paths: -------------- trunk/SKPDFView.m Modified: trunk/SKPDFView.m =================================================================== --- trunk/SKPDFView.m 2025-07-01 17:36:56 UTC (rev 15580) +++ trunk/SKPDFView.m 2025-07-02 08:49:06 UTC (rev 15581) @@ -1236,14 +1236,12 @@ if ([newAnnotations count] > 0) { + page = [self currentPage]; + for (PDFAnnotation *newAnnotation in newAnnotations) { - NSRect bounds = [newAnnotation bounds]; - page = [self currentPage]; - bounds = SKConstrainRect(bounds, [page boundsForBox:[self displayBox]]); + [newAnnotation setBounds:SKConstrainRect([newAnnotation bounds], [page boundsForBox:[self displayBox]])]; - [newAnnotation setBounds:bounds]; - [newAnnotation registerUserName]; [self addAnnotation:newAnnotation toPage:page]; 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