Fix document print

This commit is contained in:
1024jp 2018-09-23 16:22:31 +09:00
parent 921930d1fc
commit 313f2a9aa5
2 changed files with 4 additions and 3 deletions

View File

@ -2,12 +2,13 @@
Change Log
==========================
3.6.0 (280)
3.6.0 (unreleased)
--------------------------
### Fixes
- [beta] Fix an issue where the editable area in editors are ocasionally set wrong after zooming.
- [beta] Fix an issue where theme color was not applied to document print.
- [beta] Fix an issue where the editable area in editors are ocasionally set wrong after zooming on macOS 10.14 Mojave.

View File

@ -323,7 +323,7 @@ final class PrintTextView: NSTextView, NSLayoutManagerDelegate, Themable {
// set theme
let lastThemeName = self.theme?.name
let themeName = ThemeManager.shared.userDefaultSettingName()
let themeName = (settings[.theme] as? String) ?? ThemeName.blackAndWhite
let theme = ThemeManager.shared.setting(name: themeName)
if let theme = theme {
self.theme = theme