From: <mg...@us...> - 2009-04-23 07:48:42
|
Revision: 3528 http://planeshift.svn.sourceforge.net/planeshift/?rev=3528&view=rev Author: mgist Date: 2009-04-23 07:48:28 +0000 (Thu, 23 Apr 2009) Log Message: ----------- - Crash fix. Modified Paths: -------------- trunk/src/common/paws/pawstextbox.cpp Modified: trunk/src/common/paws/pawstextbox.cpp =================================================================== --- trunk/src/common/paws/pawstextbox.cpp 2009-04-22 22:01:18 UTC (rev 3527) +++ trunk/src/common/paws/pawstextbox.cpp 2009-04-23 07:48:28 UTC (rev 3528) @@ -640,6 +640,9 @@ void pawsMessageTextBox::SplitMessage( const char* newText, int colour, int size ) { + if(!newText) + return; + if(strlen(newText) == 0) { MessageLine* msgLine = new MessageLine; @@ -648,7 +651,7 @@ msgLine->colour = colour; adjusted.Push( msgLine ); } - else if (newText && newText[0] != '\0') + else if (newText[0] != '\0') { int maxWidth; int maxHeight; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |