-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Fix RichTextLabel character line and paragraph index getters #76759
Conversation
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.
Tested locally (rebased against master
a83eb16), it works.
Output from the MRP linked in #76758:
'T' is on line 0, paragraph 0
'h' is on line 0, paragraph 0
'i' is on line 0, paragraph 0
's' is on line 0, paragraph 0
' ' is on line 0, paragraph 0
'i' is on line 0, paragraph 0
's' is on line 0, paragraph 0
' ' is on line 0, paragraph 0
't' is on line 1, paragraph 0
'h' is on line 1, paragraph 0
'e' is on line 1, paragraph 0
' ' is on line 1, paragraph 0
'f' is on line 1, paragraph 0
'i' is on line 1, paragraph 0
'r' is on line 1, paragraph 0
's' is on line 1, paragraph 0
't' is on line 1, paragraph 0
' ' is on line 1, paragraph 0
'p' is on line 2, paragraph 0
'a' is on line 2, paragraph 0
'r' is on line 2, paragraph 0
'a' is on line 2, paragraph 0
'g' is on line 2, paragraph 0
'r' is on line 2, paragraph 0
'a' is on line 2, paragraph 0
'p' is on line 2, paragraph 0
'h' is on line 2, paragraph 0
'
' is on line 2, paragraph 0
'S' is on line 3, paragraph 1
'e' is on line 3, paragraph 1
'c' is on line 3, paragraph 1
'o' is on line 3, paragraph 1
'n' is on line 3, paragraph 1
'd' is on line 3, paragraph 1
'
' is on line 3, paragraph 1
'T' is on line 4, paragraph 2
'h' is on line 4, paragraph 2
'i' is on line 4, paragraph 2
'r' is on line 4, paragraph 2
'd' is on line 4, paragraph 2
Maybe @bruvzg wants to take a look at the logic just to make sure it's OK.
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.
Logic seems fine to me, visible_character
need to be tested to make sure its behavior is the same (might have the same issue).
Let's merge what we have. Thanks! But it would be great to look into the possible remaining issue and at least confirm in case it doesn't exist. |
@YuriSizov, sorry, I somehow missed the previous notifications. Will check and open an issue/PR if |
Sounds great! |
Cherry-picked for 4.1.2. |
Fix conditions for returning the character line and paragraph index for
RichTextLabel
.Fixes #76758.