Skip to content

Commit

Permalink
2041: grid combobox: fix incorrect max grid size, label formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwa committed Nov 6, 2019
1 parent 0067ff2 commit 4e5919a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/src/View/MapFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ namespace TrenchBroom {
actionManager.visitToolBarActions(builder);

m_gridChoice = new QComboBox();
for (int i = Grid::MinSize; i < Grid::MaxSize; ++i) {
const auto gridSize = Grid::actualSize(i);
const auto gridSizeStr = QString::number(gridSize, 'f', 3);
for (int i = Grid::MinSize; i <= Grid::MaxSize; ++i) {
const FloatType gridSize = Grid::actualSize(i);
const QString gridSizeStr = tr("Grid %1").arg(QString::number(gridSize, 'g'));
m_gridChoice->addItem(gridSizeStr, QVariant(i));
}

Expand Down

0 comments on commit 4e5919a

Please sign in to comment.