Skip to content

Conversation

@mattleibow
Copy link
Contributor

Description of Change

SKRect.ToRect() does not convert to CGRect correctly.

Bugs Fixed

API Changes

None.

Behavioral Changes

None.

Required skia PR

None.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Merged related skia PRs
  • Changes adhere to coding standard
  • Updated documentation

@mlancione
Copy link

mlancione commented Sep 7, 2022

@mattleibow I believe the change you made to ToSKRect() is incorrect. The SKRect constructor expects to receive the Right and Bottom values. However, the fix to ToRect() looks good.

@mattleibow
Copy link
Contributor Author

mattleibow commented Sep 7, 2022

I believe the change you made to ToSKRect() is incorrect. The SKRect constructor expects to receive the Right and Bottom values. However, the fix to ToRect() looks good.

Thanks! Also spotted that and then decided it was time to add a test to catch this. Just testing my tests now and will fix it.

@mattleibow mattleibow merged commit 193b587 into main Sep 8, 2022
@mattleibow mattleibow added this to the v2.88.2 milestone Sep 8, 2022
@mattleibow mattleibow deleted the dev/ios-torect branch September 8, 2022 14:36
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.

[BUG] The CGRect.ToRect() extension sets width and height incorrectly

3 participants