aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-03-26 19:48:30 +0900
committerHermet Park <hermetpark@gmail.com>2019-03-26 19:48:30 +0900
commit2e545ee34e58d4bd2438dd41c29374da7efc232a (patch)
treeed1b74140f418ca9a5c0ee08dad2ed3c23b69d29 /src/lib/elementary/efl_ui_win.c
parentelm_photocam: fix correct return value in elm_photocam_file_set (diff)
downloadefl-2e545ee34e58d4bd2438dd41c29374da7efc232a.tar.gz
elm_win: fix correct return value on elm_win_rotation_get
Summary: Before b3327c761e, -1 was returned on`elm_win_rotation_get`, if `obj` is NULL. This fixes backward compatibility. Test Plan: make check Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8474
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 18e28fa080..b37c1de997 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1697,6 +1697,7 @@ elm_win_rotation_set(Evas_Object *obj, int rotation)
EAPI int
elm_win_rotation_get(const Evas_Object *obj)
{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, -1);
return efl_ui_win_rotation_get(obj);
}