diff --git a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/DocumentPropertiesDialog.cs b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/DocumentPropertiesDialog.cs index b4b7bc38..4165ef92 100644 --- a/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/DocumentPropertiesDialog.cs +++ b/CSharp/Engines/WindowsForms/Engines/UniversalEditor.UserInterface.WindowsForms.DesktopApplication/Dialogs/DocumentPropertiesDialog.cs @@ -263,11 +263,17 @@ namespace UniversalEditor.UserInterface.WindowsForms.Dialogs if (mvarAccessor is FileAccessor) { Association[] assocs = Association.FromCriteria(new AssociationCriteria() { Accessor = mvarAccessor }); - - DataFormatReference[] dfrs = null; + List dfrs = new List(); + foreach (Association assoc in assocs) + { + foreach (DataFormatReference dfr in assoc.DataFormats) + { + dfrs.Add(dfr); + } + } if (mvarDataFormat == null) { - if (dfrs.Length > 0) + if (dfrs.Count > 0) { mvarDataFormat = dfrs[0].Create(); }