From 9cd8716863128bbd249740a618b94bfb14fa68eb Mon Sep 17 00:00:00 2001 From: Don Ho Date: Mon, 15 Dec 2014 22:45:28 +0000 Subject: [PATCH] [BUG_FIXED] (Author: Yobo XIE) Fix crash issue on GotoLine. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1307 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/ScitillaComponent/GoToLineDlg.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PowerEditor/src/ScitillaComponent/GoToLineDlg.cpp b/PowerEditor/src/ScitillaComponent/GoToLineDlg.cpp index a665553b..55375f06 100644 --- a/PowerEditor/src/ScitillaComponent/GoToLineDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/GoToLineDlg.cpp @@ -67,11 +67,19 @@ BOOL CALLBACK GoToLineDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM) } // find hotspots + /* NMHDR nmhdr; nmhdr.code = SCN_PAINTED; nmhdr.hwndFrom = _hSelf; nmhdr.idFrom = ::GetDlgCtrlID(nmhdr.hwndFrom); ::SendMessage(_hParent, WM_NOTIFY, (WPARAM)LINKTRIGGERED, (LPARAM)&nmhdr); + */ + + SCNotification notification = {}; + notification.nmhdr.code = SCN_PAINTED; + notification.nmhdr.hwndFrom = _hSelf; + notification.nmhdr.idFrom = ::GetDlgCtrlID(_hSelf); + ::SendMessage(_hParent, WM_NOTIFY, (WPARAM)LINKTRIGGERED, (LPARAM)¬ification); (*_ppEditView)->getFocus(); return TRUE;