History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: FVG-139
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Mark Donszelmann
Reporter: Ralph Hartley
Votes: 0
Watchers: 1
Operations

Clone this issue
Create sub-task
If you were logged in you would be able to see more operations.
FreeHEP Vector Graphics

Exporting array of components produces bad file

Created: 01/Oct/04 07:28 PM   Updated: 10/Feb/06 06:54 AM
Component/s: None
Affects Version/s: 1.2.2
Fix Version/s: 2.0

File Attachments: 1. File patch (0.9 kb)
2. Text File patch.txt (0.9 kb)


Reported By: hartley@aic.nrl.navy.mil


 Description  « Hide
There are several bugs in AbstractExportFileType.

exportToFile(File, Component[],Component,Properties,String)
(and the stream version) calls startExport (before setting multipage, which is also an error) and then starts a MultiPageSingleFileExportThread, which calls startExport again! The result is an invalid file with two headers.

Also, the thread calls openPage for every page, including the first. But at least for postscript, writeProlog (called indirectly by startExport) calls openPage, so the first page is already open.

 All   Comments   Change History      Sort Order:
Ralph Hartley - 02/Oct/04 03:37 PM
Here is a patch, works for me now.

The last paragraph of my bug report was incorrect. It only does that if startExport is called before multipage is set, which causes other problems anyway.

I guess the documaentation shoud say that multipage shouldnt be changed after startExport, but that's sort of obvious.