Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISpread.GetRange index bugfix #3

Merged
merged 1 commit into from Nov 21, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions vvvv45/src/core/PluginInterfaces/V2/ISpread.cs
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -306,9 +306,9 @@ public static ISpread<T> GetRange<T>(this ISpread<T> spread, int index, int coun
{
var result = new Spread<T>(count);

for (int i = index; i < index + count; i++)
for (int i = 0; i < count; i++)
{
result[i] = spread[i];
result[i] = spread[index+i];
}

return result;
Expand Down