* Source/GSThemeInspector.m (-update:): Don't get the frame from a

non-existing view. This was currupting the stack with gcc 4.6 on i386.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34686 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2012-02-01 09:00:23 +00:00
parent 2c748a834c
commit 94e4660f98
2 changed files with 6 additions and 1 deletions

View file

@ -178,7 +178,7 @@ static GSThemeInspector *sharedInspector = nil;
[content addSubview: s];
RELEASE(s);
r = [[s documentView] frame];
r = [[s contentView] bounds];
v = [[NSTextView alloc] initWithFrame: r];
[v setBackgroundColor: [self backgroundColor]];
[v setHorizontallyResizable: YES];