Update of /cvsroot/plib/plib/src/pui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31808
Modified Files:
puLargeInput.cxx
Log Message:
Fixing non-normalized range in large input widget (e-mail, John Fay, 11/19/05, 2:21 PM)
Index: puLargeInput.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/pui/puLargeInput.cxx,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- puLargeInput.cxx 14 Jul 2005 16:18:14 -0000 1.50
+++ puLargeInput.cxx 5 Jan 2006 21:01:45 -0000 1.51
@@ -172,7 +172,7 @@
if ( top_line_in_window < 0 ) top_line_in_window = 0 ;
- right_slider->setValue ( 1.0f - float(top_line_in_window) / float(num_lines - lines_in_window) ) ;
+ right_slider->setValue ( num_lines - lines_in_window - top_line_in_window ) ;
}
}
|