From: Udi F. <udi...@us...> - 2010-02-28 08:48:57
|
Update of /cvsroot/ufraw/ufraw In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv13142 Modified Files: ufraw_settings.cc Log Message: Add another significant digit to ChannelMultipliers in ID files. This guaranties identical output to the last bit. Index: ufraw_settings.cc =================================================================== RCS file: /cvsroot/ufraw/ufraw/ufraw_settings.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- ufraw_settings.cc 26 Feb 2010 07:01:04 -0000 1.8 +++ ufraw_settings.cc 28 Feb 2010 08:48:49 -0000 1.9 @@ -205,8 +205,16 @@ } // Output XML block even if IsDefault(). std::string XML(const char *indent) const { - char *value = g_markup_escape_text(StringValue(), -1); - std::string str = (std::string)indent + + std::string str = ""; + char num[10]; + for (int i = 0; i < Size(); i++) { + g_snprintf(num, 10, "%.4lf", DoubleValue(i)); + str += num; + if (i < Size()-1) + str += " "; + } + char *value = g_markup_escape_text(str.c_str(), -1); + str = (std::string)indent + "<" + Name() + ">" + value + "</" + Name() + ">\n"; g_free(value); return str; |