# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1044093236 0 # Node ID 85f25e8c1b1efe409399637afc0aaad54e416723 # Parent 5349a0735fdadbf91503687e6efa590737522f6c nMax is inclusive or exclusive? diff -r 5349a0735fda -r 85f25e8c1b1e win/dw.c --- a/win/dw.c Sat Feb 01 09:46:15 2003 +0000 +++ b/win/dw.c Sat Feb 01 09:53:56 2003 +0000 @@ -5392,7 +5392,7 @@ si.cbSize = sizeof(SCROLLINFO); si.fMask = SIF_RANGE | SIF_PAGE; si.nMin = 0; - si.nMax = range; + si.nMax = range - 1; si.nPage = visible; SendMessage(handle, SBM_SETSCROLLINFO, (WPARAM)TRUE, (LPARAM)&si); }