diff options
author | nicm <nicm> | 2019-10-19 12:40:42 +0000 |
---|---|---|
committer | nicm <nicm> | 2019-10-19 12:40:42 +0000 |
commit | 2cb268d51b71d74cf32e9cd1f67892681a9563e1 (patch) | |
tree | 5d93c86c3265a4fc076c700baa56df7cffe3ad7e /layout-custom.c | |
parent | 9fd62efcf0392cda0ddd1b7836e98da08d0a6f9f (diff) | |
download | rtmux-2cb268d51b71d74cf32e9cd1f67892681a9563e1.tar.gz rtmux-2cb268d51b71d74cf32e9cd1f67892681a9563e1.tar.bz2 rtmux-2cb268d51b71d74cf32e9cd1f67892681a9563e1.zip |
Do not crash trying to fix layout size if only one cell, from Azat Khuzhin.
Diffstat (limited to 'layout-custom.c')
-rw-r--r-- | layout-custom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layout-custom.c b/layout-custom.c index b049f482..d7371292 100644 --- a/layout-custom.c +++ b/layout-custom.c @@ -210,7 +210,7 @@ layout_parse(struct window *w, const char *layout) } break; } - if (lc->sx != sx || lc->sy != sy) { + if (lc->type != LAYOUT_WINDOWPANE && (lc->sx != sx || lc->sy != sy)) { log_debug("fix layout %u,%u to %u,%u", lc->sx, lc->sy, sx,sy); layout_print_cell(lc, __func__, 0); lc->sx = sx - 1; lc->sy = sy - 1; |