Remove .gitignore do nothing is ignored.
[synfig.git] / synfig-studio / trunk / src / synfigapp / settings.cpp
index de2c708..c3b3810 100644 (file)
 
 #include <fstream>
 #include <iostream>
+#include <algorithm>
 #include "settings.h"
 #include <synfig/general.h>
 
+#include "general.h"
+
 #endif
 
 /* === U S I N G =========================================================== */
@@ -196,7 +199,7 @@ Settings::save_to_file(const synfig::String& filename)const
                        {
                                if(!file)return false;
                                String ret = get_value(*iter);
-                               if (ret != String()) file<<*iter<<'='<<ret<<endl;
+                               if (ret != String()) file<<*iter<<'='<<(ret == "none" ? "normal" : ret)<<endl;
                        }
                }
 
@@ -247,7 +250,7 @@ Settings::load_from_file(const synfig::String& filename)
                        }
                        catch(...)
                        {
-                               synfig::error("Settings::load_from_file(): Attept to set key \"%s\" with a value of \"%s\" has thrown an exception.",key.c_str(),value.c_str());
+                               synfig::error("Settings::load_from_file(): Attempt to set key \"%s\" with a value of \"%s\" has thrown an exception.",key.c_str(),value.c_str());
                                throw;
                        }
                }