mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:10:38 +00:00
Coordinate conversion fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4598 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
45532bb00c
commit
e43e92b68b
2 changed files with 9 additions and 6 deletions
|
@ -833,7 +833,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (!aView)
|
||||
aView = [window contentView];
|
||||
if (aView == self)
|
||||
if (aView == self || aView == nil)
|
||||
return aPoint;
|
||||
NSAssert(window == [aView window], NSInvalidArgumentException);
|
||||
|
||||
|
@ -856,7 +856,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (!aView)
|
||||
aView = [window contentView];
|
||||
if (aView == self)
|
||||
if (aView == self || aView == nil)
|
||||
return aPoint;
|
||||
NSAssert(window == [aView window], NSInvalidArgumentException);
|
||||
|
||||
|
@ -879,7 +879,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (!aView)
|
||||
aView = [window contentView];
|
||||
if (aView == self)
|
||||
if (aView == self || aView == nil)
|
||||
return aRect;
|
||||
NSAssert(window == [aView window], NSInvalidArgumentException);
|
||||
|
||||
|
@ -907,7 +907,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (!aView)
|
||||
aView = [window contentView];
|
||||
if (aView == self)
|
||||
if (aView == self || aView == nil)
|
||||
return aRect;
|
||||
NSAssert(window == [aView window], NSInvalidArgumentException);
|
||||
|
||||
|
@ -935,7 +935,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (!aView)
|
||||
aView = [window contentView];
|
||||
if (aView == self)
|
||||
if (aView == self || aView == nil)
|
||||
return aSize;
|
||||
NSAssert(window == [aView window], NSInvalidArgumentException);
|
||||
|
||||
|
@ -958,7 +958,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
|
||||
if (!aView)
|
||||
aView = [window contentView];
|
||||
if (aView == self)
|
||||
if (aView == self || aView == nil)
|
||||
return aSize;
|
||||
NSAssert(window == [aView window], NSInvalidArgumentException);
|
||||
|
||||
|
@ -1754,6 +1754,7 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
|||
{
|
||||
GSTrackingRect *m;
|
||||
|
||||
if (window)
|
||||
aRect = [self convertRect: aRect toView: nil];
|
||||
m = [rectClass allocWithZone: NSDefaultMallocZone()];
|
||||
m = [m initWithRect: aRect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue