mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
Fix lint warnings
This commit is contained in:
parent
ec179435bd
commit
c7196470ef
@ -58,14 +58,14 @@ class TextRenderer: NodeRenderer {
|
||||
attributes[NSAttributedString.Key.strokeColor] = getTextColor(c)
|
||||
}
|
||||
var width = stroke.width
|
||||
if (hasFill) {
|
||||
if hasFill {
|
||||
// To use fill and stroke at the same time width should be negative:
|
||||
// https://developer.apple.com/library/archive/qa/qa1531/_index.html
|
||||
width *= -1
|
||||
}
|
||||
attributes[NSAttributedString.Key.strokeWidth] = width as NSObject?
|
||||
}
|
||||
if (attributes.count > 1) {
|
||||
if attributes.count > 1 {
|
||||
MGraphicsPushContext(context)
|
||||
message.draw(in: getBounds(font), withAttributes: attributes)
|
||||
MGraphicsPopContext()
|
||||
|
Loading…
Reference in New Issue
Block a user