Allow columns reordering only if wxHD_ALLOW_REORDER style is set

Dragging the column should be allowed only if wxHD_ALLOW_REORDER style
is set.

Closes #18329.
This commit is contained in:
Artur Wieczorek
2019-01-17 22:16:01 +01:00
parent defae61c13
commit 715b25aaf3

View File

@@ -686,7 +686,7 @@ void wxHeaderCtrl::OnMouse(wxMouseEvent& mevent)
wxASSERT_MSG( !IsResizing(), "reentering column resize mode?" );
StartOrContinueResizing(col, xPhysical);
}
else // on column itself
else if ( HasFlag(wxHD_ALLOW_REORDER) ) // on column itself
{
// start dragging the column
wxASSERT_MSG( !IsReordering(), "reentering column move mode?" );