Bug 339470, [@ nsIMEStateManager::IsActive], p=masayuki@d-toybox.com, r+sr=roc

This commit is contained in:
Olli.Pettay%helsinki.fi 2007-03-02 07:30:45 +00:00
Родитель d70dbf0da5
Коммит aa30bce2f2
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -188,6 +188,7 @@ nsIMEStateManager::IsActive(nsPresContext* aPresContext)
// This root window is not active. // This root window is not active.
return PR_FALSE; return PR_FALSE;
} }
NS_ENSURE_TRUE(aPresContext->GetPresShell(), PR_FALSE);
nsIViewManager* vm = aPresContext->GetViewManager(); nsIViewManager* vm = aPresContext->GetViewManager();
NS_ENSURE_TRUE(vm, PR_FALSE); NS_ENSURE_TRUE(vm, PR_FALSE);
nsCOMPtr<nsIViewObserver> observer; nsCOMPtr<nsIViewObserver> observer;