Push back if the vector is a whimsical (#1062)
This commit is contained in:
parent
814473f4d6
commit
880072016f
@ -618,10 +618,10 @@ vector<tuple<wstring, Unit>> UnitConverter::CalculateSuggested()
|
|||||||
newEntry.magnitude = log10(convertedValue);
|
newEntry.magnitude = log10(convertedValue);
|
||||||
newEntry.value = convertedValue;
|
newEntry.value = convertedValue;
|
||||||
newEntry.type = cur.first;
|
newEntry.type = cur.first;
|
||||||
if (newEntry.type.isWhimsical == false)
|
if (newEntry.type.isWhimsical)
|
||||||
intermediateVector.push_back(newEntry);
|
|
||||||
else
|
|
||||||
intermediateWhimsicalVector.push_back(newEntry);
|
intermediateWhimsicalVector.push_back(newEntry);
|
||||||
|
else
|
||||||
|
intermediateVector.push_back(newEntry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user