summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elm_entry.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index 6b8002b74..1724cb61a 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -439,15 +439,14 @@ _viewport_region_get(Evas_Object *obj)
439 { 439 {
440 if (eo_isa(parent, ELM_INTERFACE_SCROLLABLE_MIXIN)) 440 if (eo_isa(parent, ELM_INTERFACE_SCROLLABLE_MIXIN))
441 { 441 {
442 Eina_Rectangle *pr = eina_rectangle_new(0, 0, 0, 0); 442 Eina_Rectangle r;
443 evas_object_geometry_get(parent, &pr->x, &pr->y, &pr->w, &pr->h); 443 EINA_RECTANGLE_SET(&r, 0, 0, 0, 0);
444 if (!eina_rectangle_intersection(rect, pr)) 444 evas_object_geometry_get(parent, &r.x, &r.y, &r.w, &r.h);
445 if (!eina_rectangle_intersection(rect, &r))
445 { 446 {
446 rect->x = rect->y = rect->w = rect->h = 0; 447 rect->x = rect->y = rect->w = rect->h = 0;
447 eina_rectangle_free(pr);
448 break; 448 break;
449 } 449 }
450 eina_rectangle_free(pr);
451 } 450 }
452 parent = elm_widget_parent_get(parent); 451 parent = elm_widget_parent_get(parent);
453 } 452 }