From ff72db3c5c8d84ad6c24479788a0bc1f922fea58 Mon Sep 17 00:00:00 2001 From: Sergii Stoian Date: Sat, 2 Jul 2005 23:09:42 +0000 Subject: [PATCH] PCButton mouseMoved: check if ttWindow is not nil git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@21400 72102866-910b-0410-8b05-ffd578937521 --- Documentation/ChangeLog | 4 ++++ Library/PCButton.m | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/Documentation/ChangeLog b/Documentation/ChangeLog index fcb9a51..7c02328 100644 --- a/Documentation/ChangeLog +++ b/Documentation/ChangeLog @@ -1,3 +1,7 @@ +2005-07-03 Serg Stoyan + + * Library/PCButton: (mouseMoved:) check if ttWindow is not nil. + 2005-07-01 Serg Stoyan * Resources/Preferences.gorm: Fixed name of preferences panel. diff --git a/Library/PCButton.m b/Library/PCButton.m index eab9ca4..852f039 100644 --- a/Library/PCButton.m +++ b/Library/PCButton.m @@ -262,6 +262,11 @@ NSPoint origin; // NSLog(@"mouseMoved"); + if (ttWindow == nil) + { + return; + } + mouseLocation = [NSEvent mouseLocation]; origin = NSMakePoint(mouseLocation.x + 8,