Fix height calculation in NSplitView-setPosition:ofDividerAtIndex:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@40232 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2016-11-24 17:55:35 +00:00
parent b6991cdc0c
commit 9b40beea53

View file

@ -1188,9 +1188,9 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
{
r1.origin.y += position - old_position;
r1.size.height -= position - old_position;
if (NSHeight(r) < 1.)
if (NSHeight(r1) < 1.)
{
r.size.height = 1.;
r1.size.height = 1.;
}
}
else