changeset 209:85f25e8c1b1e

nMax is inclusive or exclusive?
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 01 Feb 2003 09:53:56 +0000
parents 5349a0735fda
children b9c7b762c104
files win/dw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }