git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14151
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Get total size
void wxWindowMGL::DoGetSize(int *x, int *y) const
{
// Get total size
void wxWindowMGL::DoGetSize(int *x, int *y) const
{
+ wxASSERT_MSG( m_wnd, wxT("invalid window") )
+
if (x) *x = m_wnd->width;
if (y) *y = m_wnd->height;
}
void wxWindowMGL::DoGetPosition(int *x, int *y) const
{
if (x) *x = m_wnd->width;
if (y) *y = m_wnd->height;
}
void wxWindowMGL::DoGetPosition(int *x, int *y) const
{
+ wxASSERT_MSG( m_wnd, wxT("invalid window") )
+
if (x) *x = m_wnd->x;
if (y) *y = m_wnd->y;
}
if (x) *x = m_wnd->x;
if (y) *y = m_wnd->y;
}