g-key-file-error-quark occures rather often and freezes RT, Issue 807

This commit is contained in:
Ingo
2015-05-25 19:55:59 +02:00
parent d678063484
commit 3ce4191789
6 changed files with 9 additions and 5 deletions

View File

@@ -22,6 +22,7 @@
#include "../rtengine/safekeyfile.h"
#include "../rtengine/safegtk.h"
#include "version.h"
#include <locale.h>
CacheImageData::CacheImageData ()
: md5(""), supported(false), format(FT_Invalid), rankOld(-1), inTrashOld(false), recentlySaved(false),
@@ -32,7 +33,7 @@ CacheImageData::CacheImageData ()
* Load the General, DateTime, ExifInfo, File info and ExtraRawInfo sections of the image data file
*/
int CacheImageData::load (const Glib::ustring& fname) {
setlocale(LC_NUMERIC, "C"); // to set decimal point to "."
rtengine::SafeKeyFile keyFile;
try {