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
This commit is contained in:
@@ -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
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user