From 715b25aaf372aa57885b9cf502cf860b4c35b60a Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 17 Jan 2019 22:16:01 +0100 Subject: [PATCH] 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. --- src/generic/headerctrlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/headerctrlg.cpp b/src/generic/headerctrlg.cpp index d3fa849ad4..7af227fdbd 100644 --- a/src/generic/headerctrlg.cpp +++ b/src/generic/headerctrlg.cpp @@ -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?" );