Added code to initialize a internal var before it is used. This was causing weirdness in the backend.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@17466 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2003-08-10 20:18:56 +00:00
parent 36af42bd09
commit e95739bc29
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2003-08-10 Gregory John Casamento <greg_casamento@yahoo.com>
* GormInternalViewEditor.m: Added initilization for variable r so
that it is not used uninitialized if the first event is not
NSLeftMouseUp.
2003-08-10 Gregory John Casamento <greg_casamento@yahoo.com>
* GormDocuments.m: -[GormDocument

View file

@ -537,7 +537,7 @@ static NSImage *horizontalImage;
// BOOL first = YES;
NSRect oldRect = NSZeroRect;
NSPoint p, oldp;
NSRect r;
NSRect r = NSZeroRect;
float x, y, w, h;
oldp = [self convertPoint: [theEvent locationInWindow] fromView: nil];