|
@@ -110,6 +110,12 @@
|
|
|
}
|
|
|
|
|
|
- (void)drawWithBox:(CPDFDisplayBox)box inContext:(CGContextRef)context {
|
|
|
+ BOOL annotationShouldDisplay = self.annotationShouldDisplay;
|
|
|
+ BOOL shouldDisplay = self.shouldDisplay;
|
|
|
+ if (annotationShouldDisplay == false || shouldDisplay == false) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
NSColor*pathColor = self.lineColor;
|
|
|
CGFloat red,green,blue,alpha;
|
|
|
[[pathColor colorUsingColorSpaceName:NSCalibratedRGBColorSpace] getRed:&red green:&green blue:&blue alpha:&alpha];
|