try to avoid infinite recursion by being less demanding about exact equality

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37809 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Doug Simons 2014-04-24 22:20:56 +00:00
parent 0d02e513d8
commit a2c9a6f583

View file

@ -517,8 +517,8 @@ static NSString *placeholderItem = nil;
return;
CGFloat width = [self bounds].size.width;
if (ABS(width - _tileWidth) <= 1)
NSLog(@"tile: width = %g, previous width = %g", width, _tileWidth);
if (ABS(width - _tileWidth) <= 2)
return;
NSSize itemSize = NSMakeSize(_minItemSize.width, _minItemSize.height);
@ -587,6 +587,7 @@ static NSString *placeholderItem = nil;
NSSize currentSize = [self frame].size;
if (!NSEqualSizes(currentSize, aSize))
{
NSLog(@"resizeSubviews: new size = %g x %g, currentSize = %g x %g", aSize.width, aSize.height, currentSize.width, currentSize.height);
[self tile];
}
}