bugfix: check notification icon size correctly

CID 1039875
This commit is contained in:
Mike Blumenkrantz 2014-04-04 14:42:24 -04:00 committed by Cedric BAIL
parent 5a943358ec
commit 4b9244e656
1 changed files with 10 additions and 5 deletions

View File

@ -412,15 +412,20 @@ _notification_popup_refresh(Popup_Data *popup)
width = 80;
height = 80;
}
else
{
if (!endptr[0])
height = width;
else
{
endptr++;
if (endptr)
if (endptr[0])
{
height = strtol(endptr, NULL, 10);
if (errno || (height < 1)) height = 80;
if (errno || (height < 1)) height = width;
}
else height = width;
}
else height = 80;
}
}