Revision: 14351
http://sourceforge.net/p/skim-app/code/14351
Author: hofman
Date: 2024-06-30 14:34:21 +0000 (Sun, 30 Jun 2024)
Log Message:
-----------
Revert previous commit, need bounds for layer. Set highlightAnnotation in
setter.
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2024-06-30 14:20:44 UTC (rev 14350)
+++ trunk/SKPDFView.m 2024-06-30 14:34:21 UTC (rev 14351)
@@ -537,6 +537,7 @@
}
CALayer *layer = [[CALayer alloc] init];
[layer setFrame:NSRectToCGRect([self visibleContentRect])];
+ [layer setBounds:[layer frame]];
[layer setMasksToBounds:YES];
[layer setZPosition:1.0];
[layer setContentsScale:[[self layer] contentsScale]];
@@ -969,6 +970,7 @@
- (void)setHighlightAnnotation:(PDFAnnotation *)annotation {
if (annotation != highlightAnnotation) {
+ highlightAnnotation = annotation;
if (highlightAnnotation) {
if (highlightLayerController == nil)
[self makeHighlightLayerForType:SKLayerTypeRect];
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