|
@@ -465,14 +465,17 @@ let KMColorPickerViewHeight: CGFloat = 64
|
|
|
opacity = (annotationModel?.opacity())!
|
|
|
}
|
|
|
|
|
|
- let contextString = annotationModel?.stringValue() ?? ""
|
|
|
|
|
|
opacitySlider.floatValue = Float(opacity)
|
|
|
opacitySlider.toolTip = "\(Int(opacity * 100))%"
|
|
|
opacityComboBox.stringValue = "\(Int(opacity * 100))%"
|
|
|
- noteTextView.string = contextString
|
|
|
- noteTextView.textColor = NSColor.labelColor
|
|
|
- noteTextView.delegate = self
|
|
|
+
|
|
|
+ if annotationModel?.annotations != nil {
|
|
|
+ let contextString = annotation.string() ?? ""
|
|
|
+ noteTextView.string = contextString
|
|
|
+ noteTextView.textColor = NSColor.labelColor
|
|
|
+ noteTextView.delegate = self
|
|
|
+ }
|
|
|
|
|
|
if annotationType == .freeText {
|
|
|
imageBox.contentView = textImageBoxView
|