Added wxAutoNSAutoreleasePool to DoGetBestSize method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c36a70f13c
commit
71bfb73508
@ -16,6 +16,8 @@
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/cocoa/autorelease.h"
|
||||
|
||||
#import <AppKit/NSControl.h>
|
||||
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow)
|
||||
@ -53,6 +55,7 @@ wxControl::~wxControl()
|
||||
|
||||
wxSize wxControl::DoGetBestSize() const
|
||||
{
|
||||
wxAutoNSAutoreleasePool pool;
|
||||
wxASSERT(m_cocoaNSView);
|
||||
NSRect storedRect = [m_cocoaNSView frame];
|
||||
[GetNSControl() sizeToFit];
|
||||
|
Loading…
Reference in New Issue
Block a user