mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
* GormCore/GormGenericEditor.m: Removed patch for bug#17539. Was
causing issues on load. * GormCore/GormNibWrapperLoader.m: Removed extra NSLog(...); git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@25893 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e7534d0a71
commit
4d6ba13fb2
3 changed files with 20 additions and 19 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-01-07 18:50-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormGenericEditor.m: Removed patch for bug#17539. Was
|
||||
causing issues on load.
|
||||
* GormCore/GormNibWrapperLoader.m: Removed extra NSLog(...);
|
||||
|
||||
2008-01-07 18:37-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormNibWrapperLoader.m: Minor issues corrected with c99
|
||||
|
|
|
@ -257,28 +257,23 @@
|
|||
unsigned count = [objects count];
|
||||
unsigned index = 0;
|
||||
int cols = 0;
|
||||
int rows = 0;
|
||||
int rows = 0;
|
||||
int width = 0;
|
||||
int height = 0;
|
||||
int square = 0;
|
||||
|
||||
width = [[self superview] bounds].size.width;
|
||||
cols = width / [self cellSize].width;
|
||||
height = [[self superview] bounds].size.height;
|
||||
rows = height / [self cellSize].height;
|
||||
square = height * width;
|
||||
while(rows * cols <= count)
|
||||
while (width >= 72)
|
||||
{
|
||||
int vdiff = square - height * cols * [self cellSize].width;
|
||||
int hdiff = square - width * rows * [self cellSize].height;
|
||||
if( vdiff > hdiff)
|
||||
{
|
||||
cols++;
|
||||
}
|
||||
else
|
||||
{
|
||||
rows++;
|
||||
}
|
||||
width -= (72 + 8);
|
||||
cols++;
|
||||
}
|
||||
if (cols == 0)
|
||||
{
|
||||
cols = 1;
|
||||
}
|
||||
rows = count / cols;
|
||||
if (rows == 0 || rows * cols != count)
|
||||
{
|
||||
rows++;
|
||||
}
|
||||
[self renewRows: rows columns: cols];
|
||||
|
||||
|
|
|
@ -266,7 +266,7 @@
|
|||
id dest = [o destination];
|
||||
id src = [o source];
|
||||
|
||||
NSLog(@"Connector: %@",o);
|
||||
// NSLog(@"Connector: %@",o);
|
||||
|
||||
if([o isKindOfClass: [NSNibControlConnector class]])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue