From f3aebf22ddb6e07ce94a14d7c25c71a613f600e4 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 25 Sep 2022 11:22:17 +0400 Subject: [PATCH] Improve item count handling --- apps/openmw/mwgui/itemwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/itemwidget.cpp b/apps/openmw/mwgui/itemwidget.cpp index a5658cb5d9..e9c40a7318 100644 --- a/apps/openmw/mwgui/itemwidget.cpp +++ b/apps/openmw/mwgui/itemwidget.cpp @@ -30,11 +30,11 @@ namespace { if (count > 999999999) return MyGUI::utility::toString(count/1000000000) + "b"; - else if (count > 9999999) + else if (count > 99999999) return ">9m"; else if (count > 999999) return MyGUI::utility::toString(count/1000000) + "m"; - else if (count > 9999) + else if (count > 99999) return ">9k"; else if (count > 999) return MyGUI::utility::toString(count/1000) + "k";