mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
Bugfixes suggested by stark@easynet.fr
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3525 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
07295c17fe
commit
49d9358051
3 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Jan 5 18:05:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
Source/NSMatrix.m: bugfix growing matrix - from stark@easynet.fr
|
||||
Source/NSApplication.m: Added [+new] as a synonym for the
|
||||
[+sharedApplication] method - from stark@easynet.fr
|
||||
|
||||
Tue Dec 22 12:30:00 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/GSServicesManager.m: ([-rebuildServicesMenu:]) release submenu
|
||||
|
|
|
@ -114,6 +114,11 @@ static NSString *NSAbortModalException = @"NSAbortModalException";
|
|||
} // can prevent -release
|
||||
} // loops.
|
||||
|
||||
+ (id) new
|
||||
{
|
||||
return [self sharedApplication];
|
||||
}
|
||||
|
||||
+ (NSApplication *)sharedApplication
|
||||
{ // If the global application does
|
||||
if (!NSApp) // not yet exist then create it
|
||||
|
@ -130,6 +135,12 @@ static NSString *NSAbortModalException = @"NSAbortModalException";
|
|||
//
|
||||
- init
|
||||
{
|
||||
if (NSApp != self)
|
||||
{
|
||||
[self release];
|
||||
return [NSApplication sharedApplication];
|
||||
}
|
||||
|
||||
[super init];
|
||||
|
||||
NSDebugLog(@"Begin of NSApplication -init\n");
|
||||
|
|
|
@ -124,7 +124,7 @@ static void growMatrix (tMatrix m, int numRows, int numCols)
|
|||
|
||||
if (numCols > m->allocatedCols) {
|
||||
/* Grow the existing rows to numCols */
|
||||
for (i = 0; i < numRows; i++) {
|
||||
for (i = 0; i < allocatedRows; i++) {
|
||||
m->matrix[i] = realloc (m->matrix[i], numCols * sizeof (BOOL));
|
||||
for (j = m->allocatedCols - 1; j < numCols; j++)
|
||||
m->matrix[i][j] = NO;
|
||||
|
|
Loading…
Reference in a new issue