mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:21:04 +00:00
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:
parent
b6991cdc0c
commit
9b40beea53
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue