mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
c241019926
commit
5b0bfe8f6e
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
||||
|
||||
* Tests/gui/NSView/NSView_frame_bounds.m: Add some more tests
|
||||
|
|
|
@ -1658,12 +1658,12 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
if (aView == self)
|
||||
return aPoint;
|
||||
|
||||
inBase = [[self _matrixFromWindow] transformPoint: aPoint];
|
||||
inBase = [[self _matrixToWindow] transformPoint: aPoint];
|
||||
|
||||
if (aView != nil)
|
||||
{
|
||||
NSAssert(_window == [aView window], NSInvalidArgumentException);
|
||||
return [[aView _matrixToWindow] transformPoint: inBase];
|
||||
return [[aView _matrixFromWindow] transformPoint: inBase];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue