From 8fad69b019ba90717b44824874192609cb7ef2a1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 8 Dec 2008 15:11:21 +0000 Subject: [PATCH] fix another logical/physical coords confusion and update the comment to help with this in the future git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/headerctrlg.h | 3 ++- src/generic/headerctrlg.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/wx/generic/headerctrlg.h b/include/wx/generic/headerctrlg.h index 756d9c53cb..f7f9e89254 100644 --- a/include/wx/generic/headerctrlg.h +++ b/include/wx/generic/headerctrlg.h @@ -67,7 +67,8 @@ private: void OnMouse(wxMouseEvent& event); void OnCaptureLost(wxMouseCaptureLostEvent& event); - // return the horizontal start position of the given column + // return the horizontal start position of the given column in physical + // coordinates int GetColStart(unsigned int idx) const; // refresh the given column [only]; idx must be valid diff --git a/src/generic/headerctrlg.cpp b/src/generic/headerctrlg.cpp index be040a5ac6..3a85744ca5 100644 --- a/src/generic/headerctrlg.cpp +++ b/src/generic/headerctrlg.cpp @@ -357,7 +357,7 @@ void wxHeaderCtrl::OnMouse(wxMouseEvent& mevent) if ( m_colBeingResized != COL_NONE ) { if ( mevent.LeftUp() ) - EndResizing(xLogical - GetColStart(m_colBeingResized)); + EndResizing(xPhysical - GetColStart(m_colBeingResized)); else // update the live separator position UpdateResizingMarker(xPhysical); -- 2.50.0