From ab6698ec55b3ea8d0e10134ebe9800bc4d279833 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Sat, 12 Feb 2005 05:41:17 +0000 Subject: [PATCH] Minor bug fix suggested by Pascal Hoftsee. Simply moved one line down below the part where it was being referenced after the release. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@20691 72102866-910b-0410-8b05-ffd578937521 --- Documentation/ChangeLog | 8 ++++++++ Library/PCButton.m | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/ChangeLog b/Documentation/ChangeLog index e86a985..55d49fe 100644 --- a/Documentation/ChangeLog +++ b/Documentation/ChangeLog @@ -1,3 +1,11 @@ +2005-02-12 Pascal Hoftsee + Committed by Gregory Jonh Casamento + + * Library/PCButton.m: Corrected issue in + -[PCButton _updateTrackingRects:] which was causing a SIGBUS + to occur on FreeBSD by simply moving the remove method call below + the line which was referencing the rect. + 2005-01-26 Serg Stoyan * Release 0.4.2 diff --git a/Library/PCButton.m b/Library/PCButton.m index dee98ba..eab9ca4 100644 --- a/Library/PCButton.m +++ b/Library/PCButton.m @@ -111,11 +111,11 @@ for (i = 0; i < j; i++) { tr = [_tracking_rects objectAtIndex:i]; - [self removeTrackingRect:tr->tag]; // NSLog(@"PCButton: tr: %i data: %@", tr->tag, tr->user_data); string = [(NSString *)tr->user_data copy]; + [self removeTrackingRect:tr->tag]; rect = [self frame]; rect.origin.x = 0;