diff options
| author | Vaxry <vaxry@vaxry.net> | 2026-03-17 14:47:07 -0400 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2026-03-17 14:47:20 -0400 |
| commit | 3a72064510a33c41b420b1b74dfa5e35f38d696b (patch) | |
| tree | 091891ed3274c3a4e17a14b0d80cda68e2584a85 /src/layout/algorithm/tiled/master/MasterAlgorithm.cpp | |
| parent | 9f599e316504943eec5d2fa854f7c99c575616b7 (diff) | |
algo/master: fix crash on null target in getNextTarget
Diffstat (limited to 'src/layout/algorithm/tiled/master/MasterAlgorithm.cpp')
| -rw-r--r-- | src/layout/algorithm/tiled/master/MasterAlgorithm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp b/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp index d27a0726..7696f66f 100644 --- a/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp +++ b/src/layout/algorithm/tiled/master/MasterAlgorithm.cpp @@ -1256,7 +1256,7 @@ SP<ITarget> CMasterAlgorithm::getNextCandidate(SP<ITarget> old) { } SP<ITarget> CMasterAlgorithm::getNextTarget(SP<ITarget> t, bool next, bool loop) { - if (t->floating()) + if (!t || t->floating()) return nullptr; const auto PNODE = getNodeFromTarget(t); |
