-
Notifications
You must be signed in to change notification settings - Fork 1k
[release/9.0] Fix Color value in PageSettings #13389
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
Conversation
This was inadvertently flipped when changing to CsWin32. Fixes #13367
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/9.0 #13389 +/- ##
======================================================
+ Coverage 44.90473% 74.84139% +29.93666%
======================================================
Files 1956 3022 +1066
Lines 284391 630476 +346085
Branches 41754 46802 +5048
======================================================
+ Hits 127705 471857 +344152
- Misses 149047 155236 +6189
+ Partials 7639 3383 -4256
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
public void Print_DefaultPrintController_Success() | ||
{ | ||
if (!CanPrintToPdf()) | ||
if (!Helpers.TryGetPdfPrinterName(out string? printerName)) | ||
{ | ||
return; |
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.
this would be a bug if CanPrintToPdf is true.
Backport of #13385 to release/9.0
/cc @JeremyKuhne
Customer Impact
Reading
PageSettings.Color
gives the wrong value, there is no workaround.Testing
Regression unit test.
Risk
Low, this was a manual mistake in converting to source generated interop.
Microsoft Reviewers: Open in CodeFlow