git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57943
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxNonOwnedWindow::DoMoveWindow(int x, int y, int width, int height)
{
void wxNonOwnedWindow::DoMoveWindow(int x, int y, int width, int height)
{
+ if ( m_nowpeer == NULL )
+ return;
+
m_cachedClippedRectValid = false ;
m_nowpeer->MoveWindow(x, y, width, height);
m_cachedClippedRectValid = false ;
m_nowpeer->MoveWindow(x, y, width, height);
void wxNonOwnedWindow::DoGetPosition( int *x, int *y ) const
{
void wxNonOwnedWindow::DoGetPosition( int *x, int *y ) const
{
+ if ( m_nowpeer == NULL )
+ return;
+
int x1,y1 ;
m_nowpeer->GetPosition(x1, y1);
int x1,y1 ;
m_nowpeer->GetPosition(x1, y1);
void wxNonOwnedWindow::DoGetSize( int *width, int *height ) const
{
void wxNonOwnedWindow::DoGetSize( int *width, int *height ) const
{
+ if ( m_nowpeer == NULL )
+ return;
+
int w,h;
m_nowpeer->GetSize(w, h);
int w,h;
m_nowpeer->GetSize(w, h);
void wxNonOwnedWindow::DoGetClientSize( int *width, int *height ) const
{
void wxNonOwnedWindow::DoGetClientSize( int *width, int *height ) const
{
+ if ( m_nowpeer == NULL )
+ return;
+
int left, top, w, h;
m_nowpeer->GetContentArea(left, top, w, h);
int left, top, w, h;
m_nowpeer->GetContentArea(left, top, w, h);