Get the contentViewer from the docShell APIs instead of the webShell ones.

This commit is contained in:
tbogard%aol.net 2000-03-11 00:26:20 +00:00
Родитель 9df42ad8d6
Коммит 0766d0b302
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -274,14 +274,15 @@ NS_IMETHODIMP nsAddressBook::PrintCard()
nsresult rv = NS_ERROR_FAILURE;
nsCOMPtr<nsIContentViewer> viewer;
if (!mWebShell) {
nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(mWebShell));
if (!docShell) {
#ifdef DEBUG_seth
printf("can't print, there is no webshell\n");
#endif
return rv;
}
mWebShell->GetContentViewer(getter_AddRefs(viewer));
docShell->GetContentViewer(getter_AddRefs(viewer));
if (viewer)
{