diff --git a/mozilla/layout/generic/nsPageFrame.cpp b/mozilla/layout/generic/nsPageFrame.cpp index c926bb463eb..13b9598a25b 100644 --- a/mozilla/layout/generic/nsPageFrame.cpp +++ b/mozilla/layout/generic/nsPageFrame.cpp @@ -379,7 +379,7 @@ nsPageFrame::ProcessSpecialCodes(const nsString& aStr, nsString& aNewStr) if (kTitle != nsnull) { if (aStr.Find(kTitle) > -1) { PRUnichar * uTitle; - mPD->mPrintSettings->GetTitle(&uTitle); // creates memory + mPD->mPrintOptions->GetTitle(&uTitle); // creates memory SubstValueForCode(aNewStr, kTitle, uTitle); nsMemory::Free(uTitle); nsMemory::Free(kTitle); @@ -392,7 +392,7 @@ nsPageFrame::ProcessSpecialCodes(const nsString& aStr, nsString& aNewStr) if (kDocURL != nsnull) { if (aStr.Find(kDocURL) > -1) { PRUnichar * uDocURL; - mPD->mPrintSettings->GetDocURL(&uDocURL); // creates memory + mPD->mPrintOptions->GetDocURL(&uDocURL); // creates memory SubstValueForCode(aNewStr, kDocURL, uDocURL); nsMemory::Free(uDocURL); nsMemory::Free(kDocURL); diff --git a/mozilla/layout/html/base/src/nsPageFrame.cpp b/mozilla/layout/html/base/src/nsPageFrame.cpp index c926bb463eb..13b9598a25b 100644 --- a/mozilla/layout/html/base/src/nsPageFrame.cpp +++ b/mozilla/layout/html/base/src/nsPageFrame.cpp @@ -379,7 +379,7 @@ nsPageFrame::ProcessSpecialCodes(const nsString& aStr, nsString& aNewStr) if (kTitle != nsnull) { if (aStr.Find(kTitle) > -1) { PRUnichar * uTitle; - mPD->mPrintSettings->GetTitle(&uTitle); // creates memory + mPD->mPrintOptions->GetTitle(&uTitle); // creates memory SubstValueForCode(aNewStr, kTitle, uTitle); nsMemory::Free(uTitle); nsMemory::Free(kTitle); @@ -392,7 +392,7 @@ nsPageFrame::ProcessSpecialCodes(const nsString& aStr, nsString& aNewStr) if (kDocURL != nsnull) { if (aStr.Find(kDocURL) > -1) { PRUnichar * uDocURL; - mPD->mPrintSettings->GetDocURL(&uDocURL); // creates memory + mPD->mPrintOptions->GetDocURL(&uDocURL); // creates memory SubstValueForCode(aNewStr, kDocURL, uDocURL); nsMemory::Free(uDocURL); nsMemory::Free(kDocURL);