View Issue Details

IDProjectCategoryView StatusLast Update
0001113SkyChart1-Softwarepublic13-05-06 14:32
ReporterJames Dietrich Assigned ToPatrick Chevalley  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSLinuxOS Version2.6
Product Version3.7 SVN 
Target Version3.8Fixed in Version3.7 SVN 
Summary0001113: File -> Save As... doesn't overwrite existing file properly
DescriptionWhen saving a chart, the results are different when overwriting an existing file compared with saving to a new file.
Steps To ReproduceRemove .skychart/ directory:
rm -r .skychart/
Start skychart.
Click "Next >>>" and then "OK" on the two boxes that come up.
Go to Setup -> Catalog -> Catalog and add and enable the UCAC4 catalog.
Click File -> Save As... and save the chart as a.cdc3
Exit the program.

Remove .skychart/ directory again:
rm -r .skychart/
Start skychart again.
Click "Next >>>" and then "OK" on the two boxes that come up.
This time do NOT add the UCAC4 catalog.
Click File -> Save As... and save the chart as a.cdc3
A warning about the file already existing comes up. Click "Replace" to overwrite the file.
Click File -> Save As... and save the chart as b.cdc3
Exit the program.

Now compare a.cdc3 and b.cdc3:
jdietrch@arcturus:~$ diff a.cdc3 b.cdc3
59,66d58
< CatName0=4uc
< CatLongName0=UCAC4
< CatPath0=/usr/share/skychart/cat/ucac4/
< CatMin0=0
< CatMax0=3
< CatActif0=1
< CatForceColor0=0
< CatColor0=0
653c645
< [custom_labels]
---
> [labels]
657c649
< [labels]
---
> [custom_labels]
jdietrch@arcturus:~$

I expected that the two files would be identical, since they saved the same chart. But, surprisingly, a.cdc3 has a section of settings having to do with the UCAC4 catalog, even though that catalog had never been added in the second run of the program as described above.
Additional InformationI am using version 3.7-svn2366 on amd64 Debian Linux 6.0.6.
TagsNo tags attached.

Activities

Patrick Chevalley

13-01-09 20:50

administrator   ~0002405

Fixed by revision 2374:
http://sourceforge.net/p/skychart/code/2374

Issue History

Date Modified Username Field Change
13-01-08 02:02 James Dietrich New Issue
13-01-09 20:50 Patrick Chevalley Note Added: 0002405
13-01-09 20:50 Patrick Chevalley Assigned To => Patrick Chevalley
13-01-09 20:50 Patrick Chevalley Status new => resolved
13-01-09 20:50 Patrick Chevalley Resolution open => fixed
13-01-09 20:50 Patrick Chevalley Fixed in Version 0.3.0 => 3.7 SVN
13-01-09 20:50 Patrick Chevalley Target Version 0.3.0 => 3.8
13-05-06 14:32 Patrick Chevalley Status resolved => closed