After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 439894 - Compression settings don't propagate?
Compression settings don't propagate?
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: general
0.96.1
Other Linux
: Normal normal
: 0.97
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-20 08:38 UTC by John Pye
Modified: 2007-09-16 11:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description John Pye 2007-05-20 08:38:52 UTC
I have a compressed DIA file open; I use the preferences menu on the main toolbox to modify the compression settings, the I modify my diagram and press ctrl-S. The file is not saved in uncompressed form.

Then I use save-as and I see that there is another 'compress' checkbox on the FileChooser dialog, at the bottom. It hasn't adopted the value from my settings, which I think perhaps it should have. After all, 'save as' means creating a new file.

The compressed file format, for what it's worth, seems to cause problems with LyX. It detects the file format as 'gzip' instead of 'dia'. Still working out what's up with that.
Comment 1 Lars Clausen 2007-05-20 17:14:58 UTC
The "compress saved files" preferences setting is for new files.  When a file is loaded, it remembers its compressed-ness.  Maybe the preferences option should go away entirely, and it should just remember the last choice made in the dialog.  I'll have to ponder how to make it the least confusing -- when a user is used to one setting and loads a diagram from somebody else that has the opposite setting, that should not interfere.
Comment 2 John Pye 2007-05-20 23:50:19 UTC
Perhaps the pref could be renamed 'Save new files with compression'.

And the tick-box in the 'save as' dialog should follow the preference, not the current file status.

And there should be some way of finding whether the currently-loaded file is compressed or not (maybe there already is)
Comment 3 Hans Breuer 2007-09-16 11:52:29 UTC
2007-09-16  Hans Breuer  <hans@breuer.org>

	* app/preferences.c : move "Compressed saved files" to 
	"Diagram defaults", the setting already beahved like the other
	defaults. Fixes bug #439894.
	* app/diagram.c : finally respect diagram defaults again, probably
	broken with 0.95. Fixes bug #477451