From aa641b9aae60e905ead1970b9cc87cd1d134317e Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Sun, 6 Dec 2020 17:57:55 +0100 Subject: [PATCH] Allow to move wxPGMultiButton to -1 coordinate Negative coordinates of wxPGMultiButton window are legitimate here so we need to process -1 coordinate value verbatim. Closes #18971. --- src/propgrid/editors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp index 95819191cc..b0b38c70a4 100644 --- a/src/propgrid/editors.cpp +++ b/src/propgrid/editors.cpp @@ -2132,7 +2132,7 @@ wxPGMultiButton::wxPGMultiButton( wxPropertyGrid* pg, const wxSize& sz ) void wxPGMultiButton::Finalize( wxPropertyGrid* WXUNUSED(propGrid), const wxPoint& pos ) { - Move( pos.x + m_fullEditorSize.x - m_buttonsWidth, pos.y - wxPG_BUTTON_BORDER_WIDTH); + Move( pos.x + m_fullEditorSize.x - m_buttonsWidth, pos.y - wxPG_BUTTON_BORDER_WIDTH, wxSIZE_ALLOW_MINUS_ONE); } int wxPGMultiButton::GenId( int itemid ) const