Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Printing report build with SRB crashes Base 3.3.0 RC3 | ||||||
---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | jgsylvester <jgsylvesterjr> | ||||
Component: | code | Assignee: | marc.neumann | ||||
Status: | CLOSED FIXED | QA Contact: | issues@sw <issues> | ||||
Severity: | Trivial | ||||||
Priority: | P3 | CC: | issues, vitriol_vitriol | ||||
Version: | OOO330m13 | Keywords: | regression | ||||
Target Milestone: | --- | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Issue Depends on: | |||||||
Issue Blocks: | 111112 | ||||||
Attachments: |
|
Description
jgsylvester
2010-11-02 12:13:04 UTC
can reproduce at least with the document I'm going to attach. Confirming. Adding preliminary target. Adding "regression" keyword. Assigning to developer. Correction "Version" field. Created attachment 72824 [details]
document to reproduce the bug case
to reproduce: - open the attached database document - execute the contained report by double-clicking it - menu: File => Print => crash ->TL: please have a look TL: crash occurs because when loading the report setPrintData was not called thus getPrintData return a NULL pointer. I discussed this with OS and adding the following two lines to SwDoc::getPrintData in sw/source/core/doc/doc.cxx will solve the problem: SwPrintData* SwDoc::getPrintData() const { + if (!pPrtData) + ((SwDoc*)this)->pPrtData = new SwPrintData; return pPrtData; } This fix is o.k. as short fix for OOo3.3 The DEV300 code line needs a fix that initializes the printer settings correctly and replaces the pointer access of ::getPrintData Follow-up issue for DEV300 code line is issue 115373. . . verified in CWS tl88 find more information about this CWS, like when it is available in the master builds, in EIS, the Environment Information System: http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Ftl88 |