From 1e8c7b2a1c674ac5177d458922e3de485fdf5724 Mon Sep 17 00:00:00 2001 From: Valerie Date: Fri, 5 Jul 2024 14:08:52 -0400 Subject: [PATCH] added horizontal bound to progress flag --- src/complex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/complex.rs b/src/complex.rs index 87d4678..e716b2e 100644 --- a/src/complex.rs +++ b/src/complex.rs @@ -45,7 +45,7 @@ pub fn progress(state: &State) -> Flag { let white: u32 = 0xFFFFFF; let (width, height) = state.size.get(18, 6); - if height < 6 { error::too_small(width, height); } + if height < 6 || width < 6 { error::too_small(width, height); } // create color slices and line buffer let stripes = [red, orange, yellow, green, blue, purple];