To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=110370





------- Additional comments from cl...@openoffice.org Thu Jul 15 21:44:52 +0000 
2010 -------
PrinterName block clones GetOptions, but the stuff stored (and restored on 
loading) is the JobSetup (than then is lost when replacing the previous printer 
object by the one created in the PrinterName block)

# printer created by cloning the options, but omitting JobSetup
http://pumbaa.ooodev.org:59145/source/xref/sc/source/ui/unoobj/confuno.cxx#196
# PrinterSetup stream ends up in JobSetup
http://pumbaa.ooodev.org:59145/source/xref/sfx2/source/view/printer.cxx#200

So (untested yet): replacing

SfxPrinter* pNewPrinter = new SfxPrinter( pPrinter->GetOptions().Clone(), 
aString );

by

SfxPrinter* pNewPrinter = new SfxPrinter( pPrinter->GetOptions().Clone(), 
aString, pPrinter->GetOrigJobSetup );

should do the trick

But it probably would be better to check whether the already existing printer 
already has the same name.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@sc.openoffice.org
For additional commands, e-mail: issues-h...@sc.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to