discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=ed50455cde7827c8d7b12004161c791bfee31f0a

commit ed50455cde7827c8d7b12004161c791bfee31f0a
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Fri Apr 4 14:42:24 2014 -0400

    bugfix: check notification icon size correctly
    
    CID 1039875
---
 src/modules/notification/e_mod_popup.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/modules/notification/e_mod_popup.c 
b/src/modules/notification/e_mod_popup.c
index b2bcfa8..0a38d22 100644
--- a/src/modules/notification/e_mod_popup.c
+++ b/src/modules/notification/e_mod_popup.c
@@ -338,13 +338,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;
           }
      }
 

-- 


Reply via email to