Skip to content

Commit

Permalink
Fix exception in sample Project.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Kranz committed May 23, 2018
1 parent 3100159 commit a4a96cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NSCI/UI/Controls/TextBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public partial class TextBlock : FrameworkElement
[NDProperty.NDP]
protected virtual void OnTextChanging(NDProperty.Propertys.OnChangingArg<NDPConfiguration, string> arg)
{
arg.Provider.MutatedValue = arg.Provider.NewValue?.Replace("\t", " ").Replace("\r", "");
if (arg.Provider.CanMutate)
arg.Provider.MutatedValue = arg.Provider.NewValue?.Replace("\t", " ").Replace("\r", "");
if (arg.Property.IsObjectValueChanging)
arg.ExecuteAfterChange += (sender, e) =>
{
Expand Down

0 comments on commit a4a96cb

Please sign in to comment.