1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-13 19:22:58 +00:00

Added sanity check to avoid making 0x0 window

This commit is contained in:
Nelis Oostens 2015-07-31 08:22:20 +02:00
parent 89c7da5654
commit fc6888eee3

View File

@ -643,6 +643,11 @@ static void init_window(lua::state &l __attribute__((unused)), bool own)
int b = border_inner_margin.get(l) + border_width.get(l)
+ border_outer_margin.get(l);
/* Sanity check to avoid making an invalid 0x0 window */
if (b == 0) {
b = 1;
}
if (own_window_type.get(l) == TYPE_OVERRIDE) {