From 94e4660f982f1c305bee8b4447c87f88aa92d715 Mon Sep 17 00:00:00 2001 From: fredkiefer Date: Wed, 1 Feb 2012 09:00:23 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ Source/GSThemeInspector.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ae03b5e43..7c027625c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-01 Fred Kiefer + + * Source/GSThemeInspector.m (-update:): Don't get the frame from a + non-existing view. + 2012-01-30 Eric Wasylishen * Source/NSImageCell.m (-drawInteriorWithFrame:inView:): Only diff --git a/Source/GSThemeInspector.m b/Source/GSThemeInspector.m index 95a338a51..c89139c52 100644 --- a/Source/GSThemeInspector.m +++ b/Source/GSThemeInspector.m @@ -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];