From 338ce1b0596ced4e3bb3693c07a5ef5a6f0c10e7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 22 Mar 2021 19:23:43 +0000 Subject: [PATCH] hidden: When one of the occultations is Visible, show it We don't defer to the caller's log_visible here. (That is actually misnamed.) The caller may have generated that from the old occultation state. Signed-off-by: Ian Jackson --- src/hidden.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hidden.rs b/src/hidden.rs index 3154bf81..beb01b47 100644 --- a/src/hidden.rs +++ b/src/hidden.rs @@ -504,9 +504,7 @@ fn recalculate_occultation_general< ); let log = match most_obscure.map_displaced(|_|((),())).pri_occulted() { - Some(PriOG::Visible(_y)) => { - log_visible - } + Some(prioc@ PriOG::Visible(_)) | Some(prioc@ PriOG::Occulted) | Some(prioc@ PriOG::Displaced(..)) => { let show = prioc.describe(ioccults, gpc, ipc); -- 2.30.2