Skip to content

Commit

Permalink
#5981: Use "g" format specifier for displaying values in Surface Insp…
Browse files Browse the repository at this point in the history
…ector, to cut off needless digits
  • Loading branch information
codereader committed Jun 18, 2022
1 parent f404615 commit f09a8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiant/ui/surfaceinspector/SurfaceInspector.cpp
Expand Up @@ -110,7 +110,7 @@ namespace

void SurfaceInspector::ManipulatorRow::setValue(double v)
{
value->SetValue(fmt::format("{}", v));
value->SetValue(fmt::format("{0:g}", v));
}

void SurfaceInspector::FitTextureWidgets::enable(bool enabled)
Expand Down

0 comments on commit f09a8a0

Please sign in to comment.