Fix Macro null reference errors

- Make the Add->Save feature work for Macros
This commit is contained in:
John Lewin 2016-05-09 14:20:13 -07:00
parent bb5df2b411
commit 5f9899d2f7
3 changed files with 45 additions and 32 deletions

View file

@ -57,7 +57,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
this.BaseLayer = baseConfig;
}
public List<GCodeMacro> Macros { get; set; }
public List<GCodeMacro> Macros { get; set; } = new List<GCodeMacro>();
[OnDeserialized]
internal void OnDeserializedMethod(StreamingContext context)