mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-23 15:39:42 +00:00
Fix item weight displaying as 1e+3 for Stendarr's Hammer
This commit is contained in:
parent
17f8b49db6
commit
1173957e56
1 changed files with 5 additions and 1 deletions
|
@ -512,7 +512,11 @@ namespace MWGui
|
||||||
std::string ToolTips::toString(const float value)
|
std::string ToolTips::toString(const float value)
|
||||||
{
|
{
|
||||||
std::ostringstream stream;
|
std::ostringstream stream;
|
||||||
stream << std::setprecision(3) << value;
|
|
||||||
|
if (value != int(value))
|
||||||
|
stream << std::setprecision(3);
|
||||||
|
|
||||||
|
stream << value;
|
||||||
return stream.str();
|
return stream.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue