Skip to content

Implement missing XForm.Finish() method #310

New issue

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

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

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jan 17, 2023
Merged

Conversation

ascott18
Copy link
Contributor

@ascott18 ascott18 commented Nov 30, 2022

This omission seems accidental (it was entirely wrapped in an #if gdi in the original version, but only two lines of it were GDI-only).

The absence of an implementation here was breaking #243. Taken directly from the upstream implementation https://github.com/empira/PDFsharp/blob/3205bd933b464d150c0f42e8bcdff3314b6c6164/src/PdfSharp/Drawing/XForm.cs#L231-L262.

@ststeiger
Copy link
Owner

ststeiger commented Dec 15, 2022

@ascott18: Could you please replace all occurences of Debug.Assert in your code with throwing an exception ?
Debug.Assert is not good - it causes the entire application to exit, which is particularly bad in a web-application.

@ascott18
Copy link
Contributor Author

@ststeiger Done,

@ststeiger ststeiger merged commit 9f62a81 into ststeiger:master Jan 17, 2023
@ststeiger
Copy link
Owner

@ascott18: Sorry for the delay.
Merged.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants