* Source/NSView.m: Added some basic santity checkts that the views

are in windows when converting rectangles.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31583 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Jonathan Gillaspie 2010-11-02 20:57:52 +00:00
parent 217512165b
commit 6198e3aa94
2 changed files with 3 additions and 12942 deletions

View file

@ -1713,11 +1713,11 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
{
aView = [[_window contentView] superview];
}
if (aView == self || aView == nil)
if (aView == self || aView == nil || _window == nil || [aView window] == nil)
{
return aRect;
}
NSAssert(_window == [aView window], NSInvalidArgumentException);
NSAssert(_window == [aView window], NSInvalidArgumentException);
matrix1 = [aView _matrixToWindow];
@ -1749,7 +1749,7 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
{
aView = [[_window contentView] superview];
}
if (aView == self || aView == nil)
if (aView == self || aView == nil || _window == nil || [aView window] == nil)
{
return aRect;
}