Fix “Reset to Default” (fix #741)

This commit is contained in:
1024jp 2017-10-26 12:56:31 +09:00
parent b3dc1789ef
commit 18cd293252
2 changed files with 1 additions and 2 deletions

View File

@ -21,6 +21,7 @@ develp
### Fixes
- Fix an issue where “Reset to Default” action in Font menu was ignored.
- Fix an issue where the second value of the printed time in the console was not sexagesimal.

View File

@ -98,8 +98,6 @@ extension EditorTextView {
let size = UserDefaults.standard[.fontSize]
let font = NSFont(name: name, size: size) ?? NSFont.userFont(ofSize: size)
guard font != self.font else { return }
self.font = font
self.setScaleKeepingVisibleArea(1.0)
}