From c677e4e6526378ff3cd4a55abe628b8e9a190031 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Thu, 9 Nov 2017 16:25:17 -0800 Subject: [PATCH] Fix crash on calltip click on macOS Commit b0d0494f fixed it for autocomplete popup, but a similar issue is still present for calltips. This commit fixes it. Closes https://github.com/wxWidgets/wxWidgets/pull/595 --- src/stc/ScintillaWX.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stc/ScintillaWX.cpp b/src/stc/ScintillaWX.cpp index a18796220a..deaacadbfe 100644 --- a/src/stc/ScintillaWX.cpp +++ b/src/stc/ScintillaWX.cpp @@ -490,9 +490,10 @@ void ScintillaWX::NotifyParent(SCNotification scn) { // a side effect that the AutoComp will also not be destroyed when switching // to another window, but I think that is okay. void ScintillaWX::CancelModes() { - if (! focusEvent) + if (! focusEvent) { AutoCompleteCancel(); - ct.CallTipCancel(); + ct.CallTipCancel(); + } Editor::CancelModes(); }