Skip to content

Instantly share code, notes, and snippets.

@takeshik
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takeshik/10719763 to your computer and use it in GitHub Desktop.
Save takeshik/10719763 to your computer and use it in GitHub Desktop.
[PATCH] よくわからないが、こうすると落ちなくなる (酷)
StarryEyes/Hotfixes/ViewModelHelperRx.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/StarryEyes/Hotfixes/ViewModelHelperRx.cs b/StarryEyes/Hotfixes/ViewModelHelperRx.cs
index 811f4ed..2efd9c6 100644
--- a/StarryEyes/Hotfixes/ViewModelHelperRx.cs
+++ b/StarryEyes/Hotfixes/ViewModelHelperRx.cs
@@ -77,7 +77,7 @@ namespace StarryEyes
switch (e.Action)
{
case NotifyCollectionChangedAction.Add:
- target.Insert(e.NewStartingIndex, converter((TModel)e.NewItems[0]));
+ target.Add(converter((TModel) e.NewItems[0]));
break;
case NotifyCollectionChangedAction.Move:
target.Move(e.OldStartingIndex, e.NewStartingIndex);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment