]> git.saurik.com Git - wxWidgets.git/commitdiff
fix another logical/physical coords confusion and update the comment to help with...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Dec 2008 15:11:21 +0000 (15:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 8 Dec 2008 15:11:21 +0000 (15:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/headerctrlg.h
src/generic/headerctrlg.cpp

index 756d9c53cb1b957eb084f16367342a77b4d41e67..f7f9e89254583c2d5caaef501a7a0c3add4c44dc 100644 (file)
@@ -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
index be040a5ac6745d0083ff121854c30384102d428d..3a85744ca5f41382ada0bbc62c6d9b27128f921d 100644 (file)
@@ -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);