text: Zero out the cursor_pos member
Do not trust the zero-ing done by GObject on the private data structure, and use memset() instead to zero the ClutterGeometry structure.
This commit is contained in:
parent
5c14538c14
commit
bc8a80fee5
@ -2835,6 +2835,7 @@ clutter_text_init (ClutterText *self)
|
||||
priv->max_length = 0;
|
||||
|
||||
priv->cursor_size = DEFAULT_CURSOR_SIZE;
|
||||
memset (&priv->cursor_pos, 0, sizeof (ClutterGeometry));
|
||||
|
||||
priv->font_changed_id =
|
||||
g_signal_connect_swapped (clutter_get_default_backend (),
|
||||
|
Loading…
Reference in New Issue
Block a user