- match getPreviousRBC center with
- | Some rbc -> rbc.infected, true
- | _ -> cell.cellClass = ParasitemiaCore.Types.InfectedRBC, false
+ let infected = cell.cellClass = ParasitemiaCore.Types.InfectedRBC
+ match getPreviousManuallyAlteredRBC center with
+ | Some rbc when rbc.infected <> infected -> rbc.infected, true // If it has been previously manually changed and now match the result, the manually flag is removed.
+ | _ -> infected, false