зеркало из https://github.com/mozilla/gecko-dev.git
Bug 151607 - fix an uninitialized variable in DocumentViewerImpl::PrintDocContent that was causing a later crash. r=rods, sr=sspitzer.
This commit is contained in:
Родитель
08f4fe12f7
Коммит
b2750b78bc
|
@ -4972,7 +4972,7 @@ DocumentViewerImpl::PrintDocContent(PrintObject* aPO, nsresult& aStatus)
|
|||
|
||||
|
||||
if (!aPO->mHasBeenPrinted && aPO->IsPrintable()) {
|
||||
PRBool donePrinting;
|
||||
PRBool donePrinting = PR_TRUE;
|
||||
// donePrinting is only valid when when doing synchronous printing
|
||||
aStatus = DoPrint(aPO, PR_FALSE, donePrinting);
|
||||
if (donePrinting) {
|
||||
|
|
|
@ -4972,7 +4972,7 @@ DocumentViewerImpl::PrintDocContent(PrintObject* aPO, nsresult& aStatus)
|
|||
|
||||
|
||||
if (!aPO->mHasBeenPrinted && aPO->IsPrintable()) {
|
||||
PRBool donePrinting;
|
||||
PRBool donePrinting = PR_TRUE;
|
||||
// donePrinting is only valid when when doing synchronous printing
|
||||
aStatus = DoPrint(aPO, PR_FALSE, donePrinting);
|
||||
if (donePrinting) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче