This commit is contained in:
ffsup2
2011-02-07 23:52:16 +01:00
19 changed files with 304 additions and 77 deletions

View File

@@ -22,6 +22,7 @@
#include <glibmm.h>
#include <sstream>
#include <string.h>
#include <version.h>
#include <safekeyfile.h>
@@ -226,14 +227,14 @@ raw.preser=0.0;
exif.clear ();
iptc.clear ();
version = 249;
version = TAGDISTANCE;
}
int ProcParams::save (Glib::ustring fname) const {
SafeKeyFile keyFile;
keyFile.set_integer ("Version", "Version", 20101019);
keyFile.set_integer ("Version", "Version", TAGDISTANCE);
// save tonecurve:
keyFile.set_boolean ("Exposure", "Auto", toneCurve.autoexp);
@@ -502,7 +503,7 @@ int ProcParams::load (Glib::ustring fname) {
// load tonecurve:
version = 200;
version = TAGDISTANCE;
if (keyFile.has_group ("Version")) {
if (keyFile.has_key ("Version", "Version")) version = keyFile.get_integer ("Version", "Version");
}