I must say, I love mucking around in ap_TopRuler.cpp.
P.S. Is it possible to get abisource CVS access? This is my fifth or sixth
patch and I'm starting to wish I could just commit 5 minute bugfixes like
this one.
Aaron Lehmann
Index: src/wp/ap/xp/ap_TopRuler.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/ap/xp/ap_TopRuler.cpp,v
retrieving revision 1.71
diff -u -r1.71 ap_TopRuler.cpp
--- src/wp/ap/xp/ap_TopRuler.cpp 2000/05/26 01:47:12 1.71
+++ src/wp/ap/xp/ap_TopRuler.cpp 2000/06/01 03:12:17
@@ -1507,7 +1507,9 @@
// the whole thing. but this may interact with the current scroll.
UT_sint32 xFixed = (UT_sint32)MyMax(m_iLeftRulerWidth,s_iFixedWidth);
- if ((x < xFixed) || (x > (UT_sint32)m_iWidth))
+ ap_RulerTicks tick(m_pG,m_dim);
+ if ((x < xFixed + m_infoCache.m_xPageViewMargin +
+tick.tickUnit/tick.tickUnitScale)
+ || (x > (UT_sint32)m_iWidth))
{
if(!m_bEventIgnored)
{
@@ -1520,8 +1522,6 @@
m_bEventIgnored = UT_FALSE;
// mouse motion was in the ruler portion of the window, we cannot ignore it.
-
- ap_RulerTicks tick(m_pG,m_dim);
switch (m_draggingWhat)
{