Fix for recent segfault problem while loading images in the GormImageEditor. Suggested by Sungjin Chun.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19459 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-06-05 03:51:37 +00:00
parent c36e445255
commit 4cdbd0f19a
3 changed files with 22 additions and 0 deletions

View file

@ -1,3 +1,13 @@
2004-06-04 23:53 Gregory John Casamento <greg_casamento@yahoo.com>
* GormImageEditor.m: Added some code to correct a problem found
by Riccardo Mattolla and Sujin Chun. The code is as suggested
by Sujin, to return when the superview is not available.
* GormSoundEditor.m: same as above.
NOTE: This was due to a recent change to load all images for
easy access by the user. Apparently, Linux is a little more
forgiving that some other OSes. :)
2004-06-03 00:43 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocument.h: Added "lastEditor" ivar to hold the last editor

View file

@ -416,6 +416,12 @@ static int handled_mask= NSDragOperationCopy|NSDragOperationGeneric|NSDragOperat
int rows;
int width;
// return if the superview is not available.
if(![self superview])
{
return;
}
width = [[self superview] bounds].size.width;
while (width >= 72)
{

View file

@ -508,6 +508,12 @@ static NSMapTable *docMap = 0;
int rows;
int width;
// return if the superview is not available.
if(![self superview])
{
return;
}
width = [[self superview] bounds].size.width;
while (width >= 72)
{