-
Notifications
You must be signed in to change notification settings - Fork 957
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
LinkedLabel.PaintLink
doesn't preserve clipping/transform
#4857
Comments
@RussKie can you please provide a repro for this. Looking at the old code it appears that it would not apply transforms either but I can't fully validate without knowing exactly how to reproduce your specific observed problem. |
You can grab the sample from #4860. |
While painting LinkedLabel we modify device context before drawing the label's text. Because of that we hit the asserts in TextRenderer.GetApplyStateFlags. Since the DC state is expected, skip the assertions. Closes dotnet#4857
While painting LinkedLabel we modify device context before drawing the label's text. Because of that we hit the asserts in TextRenderer.GetApplyStateFlags. Since the DC state is expected, skip the assertions. Closes #4857
Verified this issue with 6.0.100-preview.5.21276.14 from Release/6.0.1XX-preview5 branch of https://github.com/dotnet/installer, it is fixed. |
Problem description:
While testing a fix #4860, and invoking a designer actions for a
![image](https://user-images.githubusercontent.com/4403806/116521680-a014ed00-a917-11eb-8296-9ca8e39f6c6e.png)
Panel
control got a failure while rendering aLinkLabel
:This issue appears to be similar to #4610, with the root cause introduced in #4525.
Expected behavior:
With this change it appears to work:
The text was updated successfully, but these errors were encountered: