diff options
Diffstat (limited to 'Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp')
-rw-r--r-- | Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp b/Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp index df13cc346f..5409b358ff 100644 --- a/Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp +++ b/Userland/Applications/SpaceAnalyzer/TreeMapWidget.cpp @@ -341,6 +341,8 @@ void TreeMapWidget::set_tree(RefPtr<TreeMap> tree) void TreeMapWidget::set_viewpoint(size_t viewpoint) { + if (m_viewpoint == viewpoint) + return; if (viewpoint > m_path.size()) viewpoint = m_path.size(); m_viewpoint = viewpoint; |