[BUG_FIXED] (Author: Andreas Jonsson) Fix macro replaying crash issue.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1095 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
3f9b573aad
commit
75166f6596
@ -631,7 +631,10 @@ void recordedMacroStep::PlayBack(Window* pNotepad, ScintillaEditView *pEditView)
|
||||
scnN.nmhdr.code = SCN_CHARADDED;
|
||||
scnN.nmhdr.hwndFrom = pEditView->getHSelf();
|
||||
scnN.nmhdr.idFrom = 0;
|
||||
scnN.ch = sParameter.at(0);
|
||||
if(sParameter.empty())
|
||||
scnN.ch = 0;
|
||||
else
|
||||
scnN.ch = sParameter.at(0);
|
||||
::SendMessage(pNotepad->getHSelf(), WM_NOTIFY, 0, reinterpret_cast<LPARAM>(&scnN));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user