-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Reorder image fetching for GetImageFromClipboard to try PNG first #1344
Conversation
This can help preserve transparency in copied images.
LibPalaso Tests 35 files ± 0 35 suites ±0 10m 15s ⏱️ -19s For more details on these failures, see this check. Results for commit 9bf7b61. ± Comparison against base commit 3fa5695. |
Not your fault, but it looks like there is no use for this variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r1, all commit messages.
Reviewable status: 1 of 2 files reviewed, all discussions resolved
SIL.Windows.Forms/Clipboarding/WindowsClipboard.cs
line 81 at r1 (raw file):
catch (Exception e) { ex = e;
if the variable is removed a comment here explaining that we are intentionally ignoring it and falling back to other options would be good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 2 files reviewed, all discussions resolved (waiting on @jasonleenaylor)
SIL.Windows.Forms/Clipboarding/WindowsClipboard.cs
line 63 at r1 (raw file):
Previously, jasonleenaylor (Jason Naylor) wrote…
Not your fault, but it looks like there is no use for this variable.
That's not quite true. At the end of the method, if an image is not returned, and the ex variable is not null, then the method (re)throws ex instead of returning null. But that's certainly not obvious from the default snippets shown by the reviewing tool. And I'll admit it's a marginal use. But it is a use. :-)
Previously, StephenMcConnel (Steve McConnel) wrote…
Ah, I didn't expand far enough. 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r1.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @StephenMcConnel)
This can help preserve transparency in copied images.
This change is