summaryrefslogtreecommitdiffstats
path: root/Tools/QtBiomeVisualiser/MainWindow.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-28 22:15:42 +0100
committerMattes D <github@xoft.cz>2014-10-28 22:15:42 +0100
commit3168a95404c6232dd937aeeb2fdeade21239521b (patch)
treeb594450e62102f3799d748684b7f39f149cb1874 /Tools/QtBiomeVisualiser/MainWindow.cpp
parentMerge pull request #1574 from mc-server/QtBiomeVisualiserRegions (diff)
downloadcuberite-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.cpp3
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);
}