X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2ac51e161d5675e4874112e74a6ba81dfdbe1200..47e105413fda3097f4ff5a3d9a224b8123aa5501:/src/common/popupcmn.cpp diff --git a/src/common/popupcmn.cpp b/src/common/popupcmn.cpp index bc28d8708e..4f04391aa0 100644 --- a/src/common/popupcmn.cpp +++ b/src/common/popupcmn.cpp @@ -76,7 +76,7 @@ private: wxPopupTransientWindow *m_popup; DECLARE_EVENT_TABLE() - DECLARE_NO_COPY_CLASS(wxPopupWindowHandler) + wxDECLARE_NO_COPY_CLASS(wxPopupWindowHandler); }; class wxPopupFocusHandler : public wxEvtHandler @@ -92,7 +92,7 @@ private: wxPopupTransientWindow *m_popup; DECLARE_EVENT_TABLE() - DECLARE_NO_COPY_CLASS(wxPopupFocusHandler) + wxDECLARE_NO_COPY_CLASS(wxPopupFocusHandler); }; // ---------------------------------------------------------------------------- @@ -159,7 +159,7 @@ void wxPopupWindowBase::Position(const wxPoint& ptOrigin, // is there enough space to put the popup below the window (where we put it // by default)? wxCoord y = ptOrigin.y + size.y; - if ( y + sizeSelf.y > sizeScreen.y ) + if ( y + sizeSelf.y > posScreen.y + sizeScreen.y ) { // check if there is enough space above if ( ptOrigin.y > sizeSelf.y ) @@ -183,7 +183,7 @@ void wxPopupWindowBase::Position(const wxPoint& ptOrigin, x += size.x; - if ( x + sizeSelf.x > sizeScreen.x ) + if ( x + sizeSelf.x > posScreen.x + sizeScreen.x ) { // check if there is enough space to the left if ( ptOrigin.x > sizeSelf.x ) @@ -271,7 +271,7 @@ void wxPopupTransientWindow::Popup(wxWindow *winFocus) Show(); - // There is is a problem if these are still in use + // There is a problem if these are still in use wxASSERT(!m_handlerFocus || !m_handlerFocus->GetNextHandler()); wxASSERT(!m_handlerPopup || !m_handlerPopup->GetNextHandler());