Make symbol images images scale correctly. Fixes #2957

This commit is contained in:
Maurice Parker 2021-04-01 11:12:48 -05:00
parent ffed4fbbd5
commit 1ab727a128
2 changed files with 8 additions and 0 deletions

View File

@ -102,6 +102,10 @@ private extension IconView {
}
func rectForImageView() -> NSRect {
guard !(iconImage?.isSymbol ?? false) else {
return NSMakeRect(0.0, 0.0, bounds.size.width, bounds.size.height)
}
guard let image = iconImage?.image else {
return NSRect.zero
}

View File

@ -100,6 +100,10 @@ private extension IconView {
}
func rectForImageView() -> NSRect {
guard !(iconImage?.isSymbol ?? false) else {
return NSMakeRect(0.0, 0.0, bounds.size.width, bounds.size.height)
}
guard let image = iconImage?.image else {
return NSRect.zero
}