Fix flipped character in detached popover (fix #661)

This commit is contained in:
1024jp 2016-12-14 18:17:18 +09:00
parent cd2b2c8f66
commit 9993e3b5b1
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,11 @@ develop
- Update build environment to Xcode 8.2 (SDK macOS 10.12.2).
### Fixes
- Fix an issue where the zoomed characer in the characer inspector was flipped when the popover is detached.
3.1.2 (177)
--------------------------

View File

@ -68,6 +68,7 @@ final class CharacterFieldCell: NSTextFieldCell {
context.saveGState()
context.textMatrix = CGAffineTransform(scaleX: 1.0, y: 1.0) // avoid flipping drawing when popover detatched
context.textPosition = CGPoint(x: (cellFrame.width - bounds.width) / 2, y: -bounds.minY)
CTLineDraw(line, context)