Fix crash on styler dialog of User Defined Language dialog

Fixes #2646, fixes #4215, close #4279
This commit is contained in:
SinghRajenM 2018-03-08 20:23:57 +05:30 committed by Don HO
parent a724cc49a6
commit 1e0b0b2cd9
1 changed files with 3 additions and 0 deletions

View File

@ -1667,6 +1667,9 @@ INT_PTR CALLBACK StylerDlg::dlgProc(HWND hwnd, UINT message, WPARAM wParam, LPAR
case WM_COMMAND :
{
if (dlg == nullptr)
return FALSE;
Style & style = SharedParametersDialog::_pUserLang->_styleArray.getStyler(dlg->_stylerIndex);
if (HIWORD(wParam) == CBN_SELCHANGE)
{