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

Implement missing XForm.Finish() method #310

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.

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