diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2014-04-04 14:42:24 -0400 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-08-17 18:10:13 +0200 |
commit | 4b9244e656d5ed323a2bcb11a4f92c984b9bb08c (patch) | |
tree | 7d08399a89e0a18fdedd828c625f12954404664d | |
parent | 5a943358ec708e881e31363e489d3421e146b071 (diff) | |
download | enlightenment-4b9244e656d5ed323a2bcb11a4f92c984b9bb08c.tar.gz |
bugfix: check notification icon size correctly
CID 1039875
-rw-r--r-- | src/modules/notification/e_mod_popup.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/modules/notification/e_mod_popup.c b/src/modules/notification/e_mod_popup.c index fd55cfe002..2f5da99795 100644 --- a/src/modules/notification/e_mod_popup.c +++ b/src/modules/notification/e_mod_popup.c @@ -414,13 +414,18 @@ _notification_popup_refresh(Popup_Data *popup) } else { - endptr++; - if (endptr) + if (!endptr[0]) + height = width; + else { - height = strtol(endptr, NULL, 10); - if (errno || (height < 1)) height = 80; + endptr++; + if (endptr[0]) + { + height = strtol(endptr, NULL, 10); + if (errno || (height < 1)) height = width; + } + else height = width; } - else height = 80; } } |