Fix T55298: Failing assert when splitting areas vertically

There are more related glitches for which I have fixes. Will test them some more
and push in a followup commit.
This commit is contained in:
Severin
2018-06-28 19:49:00 +02:00
parent a71d53cb15
commit ca8f787349

View File

@@ -216,7 +216,7 @@ static short testsplitpoint(ScrArea *sa, char dir, float fac)
{
short x, y;
const short area_min_x = AREAMINX;
const short area_min_y = ED_area_headersize();
const short area_min_y = ED_area_headersize() + 1;
// area big enough?
if (dir == 'v' && (sa->v4->vec.x - sa->v1->vec.x <= 2 * area_min_x)) return 0;