|
@@ -384,7 +384,7 @@ class KMTTSWindowController: NSWindowController, KMTTSManagerDelegate, NSWindowD
|
|
|
//MARK: KMTTSManagerDelegate
|
|
|
func ttsMananger(_ tts: KMTTSManager, willSpeak selection: CPDFSelection) {
|
|
|
// if (selection != nil) {
|
|
|
- self.pdfView.setHighlightedSelection(selection, animated: false)
|
|
|
+ self.pdfView?.setHighlightedSelection(selection, animated: false)
|
|
|
// }
|
|
|
}
|
|
|
func ttsManangerDidFinishSpeech(_ tts: KMTTSManager) -> Bool {
|