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

[Bug] Fix NSLayoutTreeLineFragmentRectForGlyphAtIndex invalid index crash #50

Conversation

GeekTree0101
Copy link
Owner

Why need this change?:

  • VEditorTextStorage Out of bound Crash
    !!! _NSLayoutTreeLineFragmentRectForGlyphAtIndex invalid glyph index {Number}

Change made & impact:

  • Use utf16String for calculate change in length

Test Scope:

  • nil

Vertified snapshots (optional)

@codecov-io
Copy link

Codecov Report

Merging #50 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master      #50   +/-   ##
=======================================
  Coverage   67.01%   67.01%           
=======================================
  Files          25       25           
  Lines        1737     1737           
=======================================
  Hits         1164     1164           
  Misses        573      573

Copy link
Collaborator

@OhKanghoon OhKanghoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OhKanghoon OhKanghoon merged commit 74900a6 into master Feb 11, 2019
@OhKanghoon OhKanghoon deleted the bug/VEditorKit-Fix-NSLayoutTreeLineFragmentRectForGlyphAtIndex-Invalid-Index-Bug branch February 11, 2019 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants