mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
Fix crash when no dictionary by checking for null model before calling
cePositionBoard on WM_SETTINGCHANGE event
This commit is contained in:
parent
08e8c4a858
commit
88b37a1beb
1 changed files with 5 additions and 3 deletions
|
@ -1600,9 +1600,11 @@ WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
#ifdef _WIN32_WCE
|
||||
SHHandleWMSettingChange( hWnd, wParam, lParam, &globals->sai );
|
||||
#endif
|
||||
cePositionBoard( globals );
|
||||
board_invalAll( globals->game.board );
|
||||
draw = XP_TRUE;
|
||||
if ( !!globals && !!globals->game.model ) {
|
||||
cePositionBoard( globals );
|
||||
board_invalAll( globals->game.board );
|
||||
draw = XP_TRUE;
|
||||
}
|
||||
break;
|
||||
|
||||
#ifdef CEFEATURE_CANSCROLL
|
||||
|
|
Loading…
Reference in a new issue