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

Key: FVG-141
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Mark Donszelmann
Reporter: Mark Donszelmann
Votes: 0
Watchers: 0
Operations

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

Switching exportFileTypes should properly update extensions

Created: 19/May/04 04:27 PM   Updated: 10/Feb/06 07:04 AM
Component/s: None
Affects Version/s: 1.2.2
Fix Version/s: 2.0


 Description  « Hide
The ExportDialog now calls adjustFileName, which in turns calls
adjustExtension to switch xxx.ps to for instance xxx.png.

adjustExtension removes the extension (everthing after the dot [ps])
and replaces it with the new extension [png], unless the extension
is already a known good extension.

This scheme fails for names such as xxx.heprep.zip which would
be adjusted to xxx.heprep.png rather than xxx.png.

An extra call to the current exportfiletype (before switching)
to remove a known extension and changing behaviour of the default adjustExtension to add the new extension (unless the extension is ok
already) would make the whole thing work.

 All   Comments   Change History      Sort Order:
Mark Donszelmann - 10/Jan/05 01:51 PM
Fixed in a backward compatible way.