зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
b13d5f2be9
Коммит
ef8eadc532
|
@ -950,13 +950,12 @@ NS_IMETHODIMP nsPrintOptions::CreatePrintSettings(nsIPrintSettings **_retval)
|
||||||
/* readonly attribute nsIPrintSettings globalPrintSettings; */
|
/* readonly attribute nsIPrintSettings globalPrintSettings; */
|
||||||
NS_IMETHODIMP nsPrintOptions::GetGlobalPrintSettings(nsIPrintSettings * *aGlobalPrintSettings)
|
NS_IMETHODIMP nsPrintOptions::GetGlobalPrintSettings(nsIPrintSettings * *aGlobalPrintSettings)
|
||||||
{
|
{
|
||||||
if (!mGlobalPrintSettings) {
|
nsresult rv;
|
||||||
CreatePrintSettings(getter_AddRefs(mGlobalPrintSettings));
|
rv = CreatePrintSettings(getter_AddRefs(mGlobalPrintSettings));
|
||||||
NS_ASSERTION(mGlobalPrintSettings, "Can't be NULL!");
|
NS_ASSERTION(NS_FAILED(rv) || mGlobalPrintSettings, "Can't be NULL!");
|
||||||
}
|
|
||||||
|
|
||||||
// If this still NULL, we have some very big problems going on
|
// If this still NULL, we have some very big problems going on
|
||||||
if (!mGlobalPrintSettings) {
|
if (NS_FAILED(rv) || !mGlobalPrintSettings) {
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче