Handle case where cards are imported into a collection with a newer start

https://forums.ankiweb.net/t/bug-report-when-the-original-due-is-less-than-0-the-due-will-be-weird-when-empty-the-filter-deck/31279

The 0 day case isn't fixed by this, but I don't think we can fix that
with the current schema.
This commit is contained in:
Damien Elmes 2023-06-19 18:39:00 +10:00
parent 0f079779e2
commit 6f9b152028

View file

@ -103,7 +103,7 @@ impl Card {
}
SchedulerVersion::V2 => {
// original_due is cleared if card answered in filtered deck
if self.original_due > 0 {
if self.original_due != 0 {
self.due = self.original_due;
}