Bug 270079 Mozilla can not print the URL in the header and footer.

patch maker:leon.sha@sun.com r=roc sr=roc
This commit is contained in:
ginn.chen%sun.com 2006-02-07 01:15:11 +00:00
Родитель b13d5f2be9
Коммит ef8eadc532
1 изменённых файлов: 4 добавлений и 5 удалений

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

@ -950,13 +950,12 @@ NS_IMETHODIMP nsPrintOptions::CreatePrintSettings(nsIPrintSettings **_retval)
/* readonly attribute nsIPrintSettings globalPrintSettings; */
NS_IMETHODIMP nsPrintOptions::GetGlobalPrintSettings(nsIPrintSettings * *aGlobalPrintSettings)
{
if (!mGlobalPrintSettings) {
CreatePrintSettings(getter_AddRefs(mGlobalPrintSettings));
NS_ASSERTION(mGlobalPrintSettings, "Can't be NULL!");
}
nsresult rv;
rv = CreatePrintSettings(getter_AddRefs(mGlobalPrintSettings));
NS_ASSERTION(NS_FAILED(rv) || mGlobalPrintSettings, "Can't be NULL!");
// If this still NULL, we have some very big problems going on
if (!mGlobalPrintSettings) {
if (NS_FAILED(rv) || !mGlobalPrintSettings) {
return NS_ERROR_FAILURE;
}