Fix for Blackflag Bug 614157

Gecko view window crashes if clicked too quickly after opened


git-svn-id: svn://10.0.0.236/branches/ANGELON_MOZ12_BRANCH@134848 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
angelon%netscape.com
2002-12-05 20:13:06 +00:00
parent 729a4c4dc4
commit 718d385322

View File

@@ -6675,7 +6675,7 @@ nsWindow::IMEMouseHandling(PRUint32 aEventType, PRInt32 aAction, LPARAM lParam)
HWND parentWnd = ::GetParent(mWnd);
if (parentWnd) {
nsWindow* parentWidget = GetNSWindowPtr(parentWnd);
if (parentWidget->mIMEIsComposing && nsWindow::uWM_MSIME_MOUSE) {
if (parentWidget && parentWidget->mIMEIsComposing && nsWindow::uWM_MSIME_MOUSE) {
if (parentWidget->IMECompositionHitTest(aEventType, &ptPos))
if (parentWidget->HandleMouseActionOfIME(aAction, &ptPos))
return PR_TRUE;