diff --git a/src/generic/headerctrlg.cpp b/src/generic/headerctrlg.cpp index 7af227fdbd..4529a849c3 100644 --- a/src/generic/headerctrlg.cpp +++ b/src/generic/headerctrlg.cpp @@ -686,8 +686,11 @@ void wxHeaderCtrl::OnMouse(wxMouseEvent& mevent) wxASSERT_MSG( !IsResizing(), "reentering column resize mode?" ); StartOrContinueResizing(col, xPhysical); } - else if ( HasFlag(wxHD_ALLOW_REORDER) ) // on column itself + // on column itself - both header and column must have the appropriate + // flags to allow dragging the column + else if ( HasFlag(wxHD_ALLOW_REORDER) && GetColumn(col).IsReorderable() ) { + // start dragging the column wxASSERT_MSG( !IsReordering(), "reentering column move mode?" );