Don't account for the anchor thickness of an anchor which is following
Fixes fuzzer testcase 10
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user