Fix for .ini, where no newline was written when the value was null.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1990 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-08-15 11:17:02 +00:00
commit 61f92926de

View file

@ -145,7 +145,7 @@ namespace Greenshot.IniFile {
writer.WriteLine("; {0}", attributes.Description);
}
if (myValue == null) {
writer.Write("{0}=", attributes.Name);
writer.WriteLine("{0}=", attributes.Name);
return;
}
if (valueType.IsGenericType && valueType.GetGenericTypeDefinition() == typeof(List<>)) {