Fix broken ImGui time picker unit dropdown (closes #2639)

This commit is contained in:
Emma Broman
2023-04-21 09:26:29 +02:00
parent fdc238c3bc
commit d58a52df2c

View File

@@ -348,7 +348,7 @@ void GuiSpaceTimeComponent::render() {
openspace::TimeUnits.end(),
std::string(""),
[](const std::string& a, const openspace::TimeUnit& unit) {
return fmt::format("{}{} / second\0", a, nameForTimeUnit(unit, true));
return fmt::format("{}{} / second", a, nameForTimeUnit(unit, true)) + '\0';
}
);