From 7fb3cb11ff2155994db36cea855f09e5754c0382 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Fri, 4 Oct 2002 06:13:19 +0000 Subject: [PATCH] Corrected compilation problem on gcc < 3 git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@14637 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ GormInternalViewEditor.m | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dd35c09f..f0543f55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-10-04 Gregory John Casamento + + * GormInternalViewEditor.m: (dragExited:) move variable up for + compiling on gcc < 3. Problem found and patch submitted by + Fabien Vallon. + 2002-09-21 Pierre-Yves Rivaille * GormTableViewEditor.m: removed (was moved in Palettes/3Containers diff --git a/GormInternalViewEditor.m b/GormInternalViewEditor.m index 9bf1a096..78f53d12 100644 --- a/GormInternalViewEditor.m +++ b/GormInternalViewEditor.m @@ -572,6 +572,8 @@ { NSPasteboard *dragPb; NSArray *types; + NSRect rect; + dragPb = [sender draggingPasteboard]; types = [dragPb types]; @@ -582,7 +584,7 @@ } - NSRect rect = [_editedObject bounds]; + rect = [_editedObject bounds]; rect.origin.x += 3; rect.origin.y += 2; rect.size.width -= 5;