diff options
author | Daniel Hirt <hirt.danny@gmail.com> | 2017-09-25 12:39:42 +0300 |
---|---|---|
committer | Daniel Hirt <hirt.danny@gmail.com> | 2017-09-25 12:51:49 +0300 |
commit | f5560cb5118ee7ffceb3cceb9c7690713aae5687 (patch) | |
tree | 08db35271943159aec03a32f00649af1e303a1a0 | |
parent | b7b5d089296839b4851fb7f87f1ee7cb71fdcd8d (diff) |
Ui text: use eina_value_get and not eina_value_pget
CID 1381328
-rw-r--r-- | src/lib/elementary/efl_ui_text.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c index 2f1232a9b4..eca73c3f45 100644 --- a/src/lib/elementary/efl_ui_text.c +++ b/src/lib/elementary/efl_ui_text.c | |||
@@ -1117,8 +1117,10 @@ _on_layout_complete(void *data, const Eina_Value v) | |||
1117 | { | 1117 | { |
1118 | Layout_Ctx *c = data; | 1118 | Layout_Ctx *c = data; |
1119 | Eina_Rectangle r; | 1119 | Eina_Rectangle r; |
1120 | eina_value_pget(&v, &r); | 1120 | if (eina_value_get(&v, &r)) |
1121 | _layout_text_sizing_eval(c->obj, 1, 1); | 1121 | { |
1122 | _layout_text_sizing_eval(c->obj, r.w, r.h); | ||
1123 | } | ||
1122 | free(c); | 1124 | free(c); |
1123 | return v; | 1125 | return v; |
1124 | } | 1126 | } |