Skip to content

Commit

Permalink
fix sortedlist remove error
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyqus committed Apr 27, 2022
1 parent db500c7 commit 4e85b80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openxml4Net/OPC/PackageRelationshipCollection.cs
Expand Up @@ -270,7 +270,8 @@ public void RemoveRelationship(String id)
if (relationshipsByType.Values[i] == rel)
relationshipsByType.RemoveAt(i);
}
internalRelationshipsByTargetName.Values.Remove(rel);

internalRelationshipsByTargetName.RemoveAt(internalRelationshipsByTargetName.IndexOfValue(rel));
}
}
}
Expand Down

0 comments on commit 4e85b80

Please sign in to comment.