Skip to content

Commit

Permalink
Fix switching technology and bidirectional crash, see https://sourcef…
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Aug 8, 2018
1 parent 97754c9 commit 9c475c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scintilla/win32/ScintillaWin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,8 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam
#else
return 0;
#endif
} else {
bidirectional = EditModel::Bidirectional::bidiDisabled;
}
#if defined(USE_D2D)
DropRenderTarget();
Expand Down
1 change: 1 addition & 0 deletions src/Notepad2.c
Original file line number Diff line number Diff line change
Expand Up @@ -4045,6 +4045,7 @@ LRESULT MsgCommand(HWND hwnd, WPARAM wParam, LPARAM lParam) {
case IDM_SET_RENDER_TECH_D2DDC:
SendMessage(hwndEdit, SCI_SETTECHNOLOGY, LOWORD(wParam) - IDM_SET_RENDER_TECH_DEFAULT, 0);
iRenderingTechnology = (int)SendMessage(hwndEdit, SCI_GETTECHNOLOGY, 0, 0);
iBidirectional = (int)SendMessage(hwndEdit, SCI_GETBIDIRECTIONAL, 0, 0);
break;

case IDM_SET_BIDIRECTIONAL_NONE:
Expand Down

0 comments on commit 9c475c7

Please sign in to comment.