From 7e6726bef7d3d29292a1113ba284cd76a73fbc31 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 29 Sep 2018 09:13:54 -0500 Subject: [PATCH] Round zoom number display to 1 decimal place --- src/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.cpp b/src/editor.cpp index 5dd5222b..23fce69d 100644 --- a/src/editor.cpp +++ b/src/editor.cpp @@ -349,7 +349,7 @@ void Editor::onHoveredMapMetatileChanged(int x, int y) { .arg(x) .arg(y) .arg(QString("%1").arg(tile, 3, 16, QChar('0')).toUpper()) - .arg(QString::number(pow(scale_base, scale_exp)))); + .arg(QString::number(pow(scale_base, scale_exp), 'g', 2))); } }