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

Fix ArgumentOutOfRangeException in XmpUtils.PackageForJPEG #41

Merged
merged 1 commit into from
Feb 3, 2019

Conversation

trylock
Copy link
Contributor

@trylock trylock commented Jan 31, 2019

Current implementation of XmpUtils.PackageForJPEG throws ArgumentOutOfRangeException for all inputs. The error was likely caused by difference in StringBuilder API. In C#, StringBuilder.Remove expects position and length of the removed substring whereas in Java, StringBuilder.delete takes start and end indices.

@kwhopper
Copy link
Collaborator

kwhopper commented Feb 3, 2019

Seems reasonable to me. Thanks!

@kwhopper kwhopper merged commit ab3d7e0 into drewnoakes:master Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants