Minor refactor to pattern handling.

This commit is contained in:
John McNamara 2022-09-05 00:35:00 +01:00
parent efd67162ed
commit 07c67b504c

View file

@ -484,7 +484,6 @@ _prepare_fills(lxw_workbook *self)
if (format->pattern <= LXW_PATTERN_SOLID
&& format->bg_color == LXW_COLOR_UNSET
&& format->fg_color != LXW_COLOR_UNSET) {
format->bg_color = LXW_COLOR_UNSET;
format->pattern = LXW_PATTERN_SOLID;
}