mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-19 15:17:21 +03:00
Update values in viewWillDraw in PrintTextView
This commit is contained in:
parent
3ecfa16ca7
commit
7a646cf430
@ -115,10 +115,17 @@ final class PrintTextView: NSTextView, NSLayoutManagerDelegate, Themable {
|
||||
}
|
||||
|
||||
|
||||
/// draw
|
||||
override func draw(_ dirtyRect: NSRect) {
|
||||
/// prepare for drawing
|
||||
override func viewWillDraw() {
|
||||
|
||||
super.viewWillDraw()
|
||||
|
||||
self.loadPrintSettings()
|
||||
}
|
||||
|
||||
|
||||
/// draw
|
||||
override func draw(_ dirtyRect: NSRect) {
|
||||
|
||||
// store graphics state to keep line number area drawable
|
||||
// -> Otherwise, line numbers can be cropped. (2016-03 by 1024jp)
|
||||
|
Loading…
Reference in New Issue
Block a user