Skip to content

Commit 0f9987f

Browse files
committed
Minor correctness tweak
1 parent 61493c2 commit 0f9987f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/ColorWellKit/Views/Cocoa/ColorWellPopover.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ extension ColorWellPopover {
363363

364364
context.compositingOperation = .multiply
365365

366-
(color.usingColorSpace(.displayP3) ?? color).drawSwatch(in: bounds)
366+
let color = color.usingColorSpace(.displayP3) ?? color
367+
color.drawSwatch(in: bounds)
367368
NSColor(white: 1 - color.averageBrightness, alpha: 0.3).setStroke()
368369
let path = NSBezierPath(rect: bounds.insetBy(1))
369370
path.lineWidth = 2

0 commit comments

Comments
 (0)