[Plib-cvs] plib/src/pui puTriSlider.cxx,1.17,1.18
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-06-10 18:39:41
|
Update of /cvsroot/plib/plib/src/pui In directory usw-pr-cvs1:/tmp/cvs-serv1541 Modified Files: puTriSlider.cxx Log Message: James Jones: Fixed puTriSlider / "freeze_ends == TRUE" behaviour Index: puTriSlider.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puTriSlider.cxx,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- puTriSlider.cxx 10 Nov 2001 13:37:38 -0000 1.17 +++ puTriSlider.cxx 10 Jun 2002 18:39:37 -0000 1.18 @@ -124,8 +124,10 @@ if ( getFreezeEnds() ) // Cannot move end sliders, must move middle one { - setValue ( new_value ) ; - setActiveButton ( 2 ) ; + setActiveButton ( 2 ) ; + setValue ( new_value ) ; /* Ensure that the middle slider can't move beyond the barriers - JCJ 10 Jun 2002 */ + if ( new_value < getCurrentMin() ) setValue ( getCurrentMin() ) ; + if ( new_value > getCurrentMax() ) setValue ( getCurrentMax() ) ; } else { @@ -196,3 +198,4 @@ } } } + |