011-05-07 Eric Wasylishen <ewasylishen@gmail.com>

* Source/NSView.m (-convertPoint:toView:): Correct this
	method; it was applying the transforms backwards :-(


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33001 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2011-05-07 21:30:25 +00:00
parent 962464cf14
commit a68c89afb8
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
011-05-07 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSView.m (-convertPoint:toView:): Correct this
method; it was applying the transforms backwards :-(
2011-05-05 Eric Wasylishen <ewasylishen@gmail.com> 2011-05-05 Eric Wasylishen <ewasylishen@gmail.com>
* Tests/gui/NSView/NSView_frame_bounds.m: Add some more tests * Tests/gui/NSView/NSView_frame_bounds.m: Add some more tests

View file

@ -1658,12 +1658,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if (aView == self) if (aView == self)
return aPoint; return aPoint;
inBase = [[self _matrixFromWindow] transformPoint: aPoint]; inBase = [[self _matrixToWindow] transformPoint: aPoint];
if (aView != nil) if (aView != nil)
{ {
NSAssert(_window == [aView window], NSInvalidArgumentException); NSAssert(_window == [aView window], NSInvalidArgumentException);
return [[aView _matrixToWindow] transformPoint: inBase]; return [[aView _matrixFromWindow] transformPoint: inBase];
} }
else else
{ {