From dc4b082ee8748e70e0a6d6cbec000e660321e215 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 3 Mar 2026 20:59:18 +0000 Subject: [PATCH] algo/scrolling: fix rare crash --- src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp b/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp index 0c3bb1cc..afba398f 100644 --- a/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp +++ b/src/layout/algorithm/tiled/scrolling/ScrollingAlgorithm.cpp @@ -1496,7 +1496,7 @@ CBox CScrollingAlgorithm::usableArea() { CBox box = m_parent->space()->workArea(); // doesn't matter, this happens when this algo is about to be destroyed - if (!m_parent->space()->workspace()) + if (!m_parent->space()->workspace() || !m_parent->space()->workspace()->m_monitor) return box; box.translate(-m_parent->space()->workspace()->m_monitor->m_position);