bugfix: check notification icon size correctly

CID 1039875
This commit is contained in:
Mike Blumenkrantz 2014-04-04 14:42:24 -04:00
parent 861db30df2
commit ed50455cde
1 changed files with 10 additions and 5 deletions

View File

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