Push back if the vector is a whimsical (#1062)

This commit is contained in:
pi1024e
2020-03-03 16:47:26 -05:00
committed by GitHub
parent 814473f4d6
commit 880072016f

View File

@@ -618,10 +618,10 @@ vector<tuple<wstring, Unit>> UnitConverter::CalculateSuggested()
newEntry.magnitude = log10(convertedValue);
newEntry.value = convertedValue;
newEntry.type = cur.first;
if (newEntry.type.isWhimsical == false)
intermediateVector.push_back(newEntry);
else
if (newEntry.type.isWhimsical)
intermediateWhimsicalVector.push_back(newEntry);
else
intermediateVector.push_back(newEntry);
}
}