diff options
author | Mattes D <github@xoft.cz> | 2014-10-28 22:15:42 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-10-28 22:15:42 +0100 |
commit | 3168a95404c6232dd937aeeb2fdeade21239521b (patch) | |
tree | b594450e62102f3799d748684b7f39f149cb1874 /Tools/QtBiomeVisualiser/MainWindow.cpp | |
parent | Merge pull request #1574 from mc-server/QtBiomeVisualiserRegions (diff) | |
download | cuberite-3168a95404c6232dd937aeeb2fdeade21239521b.tar cuberite-3168a95404c6232dd937aeeb2fdeade21239521b.tar.gz cuberite-3168a95404c6232dd937aeeb2fdeade21239521b.tar.bz2 cuberite-3168a95404c6232dd937aeeb2fdeade21239521b.tar.lz cuberite-3168a95404c6232dd937aeeb2fdeade21239521b.tar.xz cuberite-3168a95404c6232dd937aeeb2fdeade21239521b.tar.zst cuberite-3168a95404c6232dd937aeeb2fdeade21239521b.zip |
Diffstat (limited to 'Tools/QtBiomeVisualiser/MainWindow.cpp')
-rw-r--r-- | Tools/QtBiomeVisualiser/MainWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/QtBiomeVisualiser/MainWindow.cpp b/Tools/QtBiomeVisualiser/MainWindow.cpp index dc26a32c7..4437d9ceb 100644 --- a/Tools/QtBiomeVisualiser/MainWindow.cpp +++ b/Tools/QtBiomeVisualiser/MainWindow.cpp @@ -172,7 +172,8 @@ void MainWindow::setViewZoom() { return; } - double newZoom = m_ViewZooms[action->data().toInt()]; + m_CurrentZoomLevel = action->data().toInt(); + double newZoom = m_ViewZooms[m_CurrentZoomLevel]; m_BiomeView->setZoomLevel(newZoom); action->setChecked(true); } |