don't take EVT_HEADER_END_DRAG into account if it indicates the the drag was cancelled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -154,9 +154,12 @@ private:
|
|||||||
|
|
||||||
void OnEndDrag(wxHeaderCtrlEvent& event)
|
void OnEndDrag(wxHeaderCtrlEvent& event)
|
||||||
{
|
{
|
||||||
const unsigned col = event.GetColumn();
|
if ( !event.IsCancelled() )
|
||||||
GetColumn(col).SetWidth(event.GetWidth());
|
{
|
||||||
GetOwner()->OnColumnChange(col);
|
const unsigned col = event.GetColumn();
|
||||||
|
GetColumn(col).SetWidth(event.GetWidth());
|
||||||
|
GetOwner()->OnColumnChange(col);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
Reference in New Issue
Block a user