Closed Bug 431587 Opened 17 years ago Closed 17 years ago

Print selection uses wrong "total number of pages" when printing scaled output

Categories

(Core :: Printing: Output, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: dholbert)

References

(Blocks 1 open bug)

Details

(Keywords: regression, testcase)

Attachments

(2 files)

Attached file testcase 1
Steps to reproduce: 1. Load testcase 1 2. Select-All 3. Print, with "print selection" ticked 4. Examine output EXPECTED RESULTS: 3 pages, numbered "1 of 3", "2 of 3", and "3 of 3" ACTUAL RESULTS: 3 pages, numbered "1 of 5", "2 of 5", and "3 of 5" It looks like we're not scaling down correctly when calculating the total expected number of pages.
Attached patch trivial patchSplinter Review
As this comment in the patched region suggests... - // XXXdholbert does this num-pages calculation need to take - // aPO->mZoomRatio into consideration? ... the num-pages calculation does indeed need to take the zoom ratio into consideration. This fixes the bug.
Attachment #318694 - Flags: superreview?(roc)
Attachment #318694 - Flags: review?(roc)
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Blocks: 431588
Attachment #318694 - Flags: superreview?(roc)
Attachment #318694 - Flags: superreview+
Attachment #318694 - Flags: review?(roc)
Attachment #318694 - Flags: review+
Comment on attachment 318694 [details] [diff] [review] trivial patch Requesting approval. - Very low-risk - one-line patch - clearly what we should be doing
Attachment #318694 - Flags: approval1.9?
OS: Linux → All
Hardware: PC → All
Comment on attachment 318694 [details] [diff] [review] trivial patch a1.9+=damons
Attachment #318694 - Flags: approval1.9? → approval1.9+
Patch checked in. Checking in layout/printing/nsPrintEngine.cpp; /cvsroot/mozilla/layout/printing/nsPrintEngine.cpp,v <-- nsPrintEngine.cpp new revision: 1.183; previous revision: 1.182 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: