mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:30:38 +00:00
* 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:
parent
217512165b
commit
6198e3aa94
2 changed files with 3 additions and 12942 deletions
|
@ -1713,11 +1713,11 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
|
||||||
{
|
{
|
||||||
aView = [[_window contentView] superview];
|
aView = [[_window contentView] superview];
|
||||||
}
|
}
|
||||||
if (aView == self || aView == nil)
|
if (aView == self || aView == nil || _window == nil || [aView window] == nil)
|
||||||
{
|
{
|
||||||
return aRect;
|
return aRect;
|
||||||
}
|
}
|
||||||
NSAssert(_window == [aView window], NSInvalidArgumentException);
|
NSAssert(_window == [aView window], NSInvalidArgumentException);
|
||||||
|
|
||||||
matrix1 = [aView _matrixToWindow];
|
matrix1 = [aView _matrixToWindow];
|
||||||
|
|
||||||
|
@ -1749,7 +1749,7 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
|
||||||
{
|
{
|
||||||
aView = [[_window contentView] superview];
|
aView = [[_window contentView] superview];
|
||||||
}
|
}
|
||||||
if (aView == self || aView == nil)
|
if (aView == self || aView == nil || _window == nil || [aView window] == nil)
|
||||||
{
|
{
|
||||||
return aRect;
|
return aRect;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue