From 1f0e4b0eca77a2606db0b825785b8eb5a4364c46 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Wed, 10 Jun 2009 13:17:09 -0700 Subject: [PATCH] Fix for window returning a direct reference to its frame instead of a copy. Reviewed by me. --- AppKit/CPWindow/CPWindow.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index a2dd7d717..103fc2890 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -567,7 +567,7 @@ CPTexturedBackgroundWindowMask */ - (CGRect)frame { - return _frame; + return _CGRectMakeCopy(_frame); } /*!