From: DaveG <da...@us...> - 2006-07-29 22:29:15
|
Update of /cvsroot/planeshift/planeshift/src/common/paws In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22975/src/common/paws Modified Files: pawstextbox.cpp Log Message: fixing a crash when text is cleared or changed and the line numbers are not properly reset Index: pawstextbox.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/paws/pawstextbox.cpp,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** pawstextbox.cpp 27 Jun 2006 17:26:24 -0000 1.79 --- pawstextbox.cpp 29 Jul 2006 22:29:12 -0000 1.80 *************** *** 726,730 **** text.Replace( newText ); ! if (!multiLine) { if (newText) --- 726,739 ---- text.Replace( newText ); ! ! if (multiLine) ! { ! start = 0; ! cursorPosition = 0; ! cursorLine = 0; ! usedLines = 0; ! topLine = 0; ! } ! else { if (newText) *************** *** 1170,1173 **** --- 1179,1184 ---- cursorPosition = 0; cursorLine = 0; + usedLines = 0; + topLine = 0; text.Clear(); |