Page MenuHome

Text gets wrongly clipped when using accented letters
Closed, ResolvedPublic

Description

Happens with 2.62 and latest SVN revision.
Open the attached blend.Resize the node. Text in the editbox disappears when the character "é" becomes hidden.

Details

Type
Bug

Event Timeline

Bug seems to be in function ui_text_leftclip which doesn't take care of utf8 characters when incrementing but->ofs.

Got fix for this issue but want somebody to review changes
Campbell, can you help with review?

Thanks Sergey for your fix.
I did some tests with your patch, seems to work OK.

LGTM, no need for BLI_str_size_in_bytes_urf8, can just use strlen in this case.

Removed that function and commited to rev45080.
Thanks for the report and review, closing now.

Sergey Sharybin (sergey) closed this task as Resolved.Mar 22 2012, 10:21 AM