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

@ -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;
}
}