Closed Bug 175828 Opened 22 years ago Closed 22 years ago

PS should only be initialized once

Categories

(Core :: Printing: Output, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

VERIFIED INVALID
mozilla1.2beta

People

(Reporter: rods, Assigned: rods)

Details

Attachments

(1 file, 2 obsolete files)

The PrintSettings should only be initialized one time for each printer name. This means once the PS has been intialized from Prefs and from the Printer it shouldn't be re-initialized again for the printer. If the printer name in the PS changes then if should be once again initialized from both Prefs and from the Printer.
This is important because at the moment PrintPreview isn't working correctly. This is a regression fro a check in to the Page Setup Dialog a while back.
Severity: normal → major
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.2beta
Attached patch patch V1 (obsolete) — Splinter Review
This patch has the PrintSettings cache the name of the printer it was initialized with. That way it only initializes once for the printer. If the name changes then it will get re-initialized from the new printer.
Attached patch patch v2 (obsolete) — Splinter Review
same as above just a minor change
Attachment #103599 - Attachment is obsolete: true
Attached patch patch v3Splinter Review
Better patch. This patch adds two bools to the PrintSettings and then when the PS gets initialized from Prefs or from the Printer they get set. They get unset when the printer name changes. This is all necessary because the Page Setup Dialog calls initPrintSettingsFromPrinter each time it is shown. So if you have set values they will get "written" over the next time the dialog is shown.
Attachment #103602 - Attachment is obsolete: true
This patch has been incorporated into Bug 167894
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: