Index: src/wp/ap/xp/ap_TopRuler.cpp =================================================================== RCS file: /cvsroot/abi/src/wp/ap/xp/ap_TopRuler.cpp,v retrieving revision 1.60 diff -u -r1.60 ap_TopRuler.cpp --- src/wp/ap/xp/ap_TopRuler.cpp 2000/01/29 06:20:45 1.60 +++ src/wp/ap/xp/ap_TopRuler.cpp 2000/02/27 05:48:16 @@ -1023,6 +1023,15 @@ (static_cast(m_pView))->getTopRulerInfo(&m_infoCache); + // Set this in case we never get a mouse motion event + UT_sint32 xAbsLeft = _getFirstPixelInColumn( &m_infoCache, + m_infoCache.m_iCurrentColumn); + UT_sint32 xrel = ((UT_sint32)x) - xAbsLeft; + ap_RulerTicks tick(m_pG,m_dim); + UT_sint32 xgrid = _snapPixelToGrid(xrel,tick); + m_draggingCenter = xAbsLeft + xgrid; + + // first hit-test against the tab toggle control UT_Rect rToggle; @@ -1143,12 +1152,6 @@ m_bBeforeFirstMotion = UT_TRUE; // this is a new widget, so it needs more work to get started - ap_RulerTicks tick(m_pG,m_dim); - - UT_sint32 xAbsLeft = _getFirstPixelInColumn(&m_infoCache,m_infoCache.m_iCurrentColumn); - UT_sint32 xrel = ((UT_sint32)x) - xAbsLeft; - UT_sint32 xgrid = _snapPixelToGrid(xrel,tick); - m_dragStart = xgrid; double dgrid = _scalePixelDistanceToUnits(xrel,tick); @@ -1164,8 +1167,6 @@ m_bBeforeFirstMotion = UT_FALSE; } - - return; } /*****************************************************************/