[Plib-cvs] CVS: plib/src/pui puLargeInput.cxx,1.27,1.28
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-01-16 19:40:21
|
Update of /cvsroot/plib/plib/src/pui In directory usw-pr-cvs1:/tmp/cvs-serv29832 Modified Files: puLargeInput.cxx Log Message: John F. Fay: Fixed a bug that caused text to jump around when selecting a line Index: puLargeInput.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puLargeInput.cxx,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- puLargeInput.cxx 2001/12/21 14:27:13 1.27 +++ puLargeInput.cxx 2002/01/16 19:40:18 1.28 @@ -242,7 +242,7 @@ int line_count = 0 ; while ( lin_ptr && ( lin_ptr <= text_start + select_start_position ) ) // Count the lines { - line_count ++ ; + line_count++ ; lin_ptr = strchr ( lin_ptr+1, '\n' ) ; } @@ -271,7 +271,7 @@ if ( select_start_position > 0 ) - select_start_position ++ ; + select_start_position++ ; select_end_position = int ( strchr ( temp_text + select_end_position, '\n' ) + 1 - temp_text ) ; if ( select_end_position == 1 ) select_end_position = strlen ( temp_text ) ; @@ -659,7 +659,7 @@ else if ( line_count > end_lin ) // Have gone beyond window, end process end_of_line = NULL ; - line_count ++ ; + line_count++ ; } // while ( end_of_line ) } // if ( val ) |