From dcf5613bdf0bd35e6d814b3885434c76dd8f41c6 Mon Sep 17 00:00:00 2001 From: Christian Heinemann Date: Tue, 24 Dec 2024 08:15:27 +0100 Subject: [PATCH] Update AlienImGui.cpp --- source/Gui/AlienImGui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Gui/AlienImGui.cpp b/source/Gui/AlienImGui.cpp index 938272349..4eeaaa508 100644 --- a/source/Gui/AlienImGui.cpp +++ b/source/Gui/AlienImGui.cpp @@ -1285,8 +1285,8 @@ bool AlienImGui::BeginTreeNode(TreeNodeParameters const& parameters) TreeNodeInfo info = _treeNodeInfoById.contains(id) ? _treeNodeInfoById.at(id) : TreeNodeInfo(); int highlightCountdown = 0; if (parameters._blinkWhenActivated) { - highlightCountdown = std::max(0ll, 1000 - std::chrono::duration_cast(std::chrono::steady_clock::now() - info.invisibleTimepoint) - .count()); + highlightCountdown = std::max(0, toInt(1000 - std::chrono::duration_cast(std::chrono::steady_clock::now() - info.invisibleTimepoint) + .count())); if (highlightCountdown > 0) { ImGui::SetScrollHereY(); }