text: Add a NULL preedit string check
This commit avoids a critical warning introduced by commit
bc51b8ca47
This commit is contained in:
parent
bc51b8ca47
commit
09c04d4c67
@ -594,7 +594,9 @@ clutter_text_position_to_coords (ClutterText *self,
|
||||
gint cursor_index;
|
||||
|
||||
cursor_index = offset_to_bytes (text, priv->position);
|
||||
g_string_insert (tmp, cursor_index, priv->preedit_str);
|
||||
|
||||
if (priv->preedit_str != NULL)
|
||||
g_string_insert (tmp, cursor_index, priv->preedit_str);
|
||||
|
||||
if (priv->password_char == 0)
|
||||
index_ = offset_to_bytes (tmp->str, position);
|
||||
|
Loading…
Reference in New Issue
Block a user