~eliasnaur/gio#142: 
widget/editor.Move on an editor that hasn't been laid out yet panics

If you call Move on an editor that hasn't been laid out yet, it panics, because editor.shaper is nil.

In my app, I have occasion to set the editor text, and move the caret to the end of the text (Move(len(text))), before having actually run Layout the first time.

Status
RESOLVED FIXED
Submitter
~theclapp
Assigned to
No-one
Submitted
10 months ago
Updated
10 months ago
Labels
No labels applied.

~eliasnaur REPORTED FIXED 10 months ago

~theclapp 10 months ago

Thanks!

Register here or Log in to comment, or comment via email.