removed floorf()

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@30826 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2010-06-22 21:36:33 +00:00
parent 491745fd36
commit e5b908e541
2 changed files with 4 additions and 6 deletions

View file

@ -12,7 +12,9 @@
* Modules/Editors/ProjectCenter/PCEditor+Document.m
Deleted
* Framework/PCProjectWindow.m
Removed floorf() in favour of nothing or truncation.
2010-06-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Framework/PCProject.m (-fileTypesForCategoryKey:): Add .dylib to

View file

@ -788,8 +788,6 @@
// NSLog(@"resizeVerticalSubiewsWithOldSize entered split view width: %f, height %f", splitSize.width, splitSize.height);
boxRect = [v_split frame];
boxRect.size.width = floorf(boxRect.size.width);
boxRect.size.height = floorf(boxRect.size.height);
[v_split setFrame:boxRect];
if (splitSize.width == oldSize.width && splitSize.height == oldSize.height)
@ -816,9 +814,7 @@
// Unable to restore browser frame
if (browserRect.size.width == 0 && browserRect.size.height == 0)
{
browserRect = NSMakeRect(0, 0,
floorf(splitSize.width),
floorf(splitSize.height));
browserRect = NSMakeRect(0, 0, splitSize.width, splitSize.height);
}
[browserView setFrame:browserRect];
}