Skip to content

Commit

Permalink
Merge pull request #5 from Barsonax/#583
Browse files Browse the repository at this point in the history
#583: fix for enumpropertyeditor
  • Loading branch information
ilexp committed Oct 18, 2017
2 parents e4fb0f2 + 028d704 commit dc59c94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ TestResults
*.suo
*.user
*.sln.docstates
/.vs

# Build results
[Dd]ebug/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ protected override void OnGetValue()
{
base.OnGetValue();
this.BeginUpdate();
Enum[] values = this.GetValue().Select(o => o is Enum ? (Enum)o : null).ToArray();
Enum[] values = Enum.GetValues(EditedType).Cast<Enum>().ToArray();
IEnumerable<Enum> valuesNotNull = values.Where(o => o != null);

// Apply values to editors
Expand Down

0 comments on commit dc59c94

Please sign in to comment.