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)
Core
Printing: Output
Tracking
()
RESOLVED
FIXED
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
(Keywords: regression, testcase)
Attachments
(2 files)
2.41 KB,
text/html
|
Details | |
2.44 KB,
patch
|
roc
:
review+
roc
:
superreview+
damons
:
approval1.9+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•17 years ago
|
||
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 | ||
Updated•17 years ago
|
Assignee: nobody → dholbert
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Attachment #318694 -
Flags: superreview?(roc)
Attachment #318694 -
Flags: superreview+
Attachment #318694 -
Flags: review?(roc)
Attachment #318694 -
Flags: review+
Assignee | ||
Comment 2•17 years ago
|
||
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?
Assignee | ||
Updated•17 years ago
|
OS: Linux → All
Hardware: PC → All
Comment 3•17 years ago
|
||
Comment on attachment 318694 [details] [diff] [review]
trivial patch
a1.9+=damons
Attachment #318694 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 4•17 years ago
|
||
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
Comment 5•17 years ago
|
||
https://litmus.mozilla.org/show_test.cgi?id=5324 added to Litmus.
Flags: in-litmus+
You need to log in
before you can comment on or make changes to this bug.
Description
•