Don't account for the anchor thickness of an anchor which is following

Fixes fuzzer testcase 10
This commit is contained in:
Sergio Martins
2020-01-24 11:17:46 +00:00
parent 9ca03b65f0
commit 8898ec82a4

View File

@@ -789,6 +789,8 @@ MultiSplitterLayout::Length MultiSplitterLayout::availableLengthForDrop(Location
break;
}
anchor = anchor->isFollowing() ? anchor->endFollowee() : anchor;
const int minForAlreadyOccupied1 = anchor->cumulativeMinLength(Anchor::Side1) - anchor->thickness(); // TODO: Check if this is correct, we're discounting the anchor twice
const int minForAlreadyOccupied2 = anchor->cumulativeMinLength(Anchor::Side2) - anchor->thickness();