mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:40:38 +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
962464cf14
commit
a68c89afb8
2 changed files with 7 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue