[Plib-cvs] CVS: plib/src/pui puFont.cxx,1.9,1.10
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-02-28 20:32:52
|
Update of /cvsroot/plib/plib/src/pui In directory usw-pr-cvs1:/tmp/cvs-serv27015 Modified Files: puFont.cxx Log Message: In puFont::getStringHeight ( char * ), handle NULL pointers Index: puFont.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/pui/puFont.cxx,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- puFont.cxx 27 Feb 2002 02:58:34 -0000 1.9 +++ puFont.cxx 28 Feb 2002 20:32:46 -0000 1.10 @@ -113,7 +113,10 @@ int puFont::getStringHeight ( const char *s ) const { /* Height *excluding* descender */ - + + if ( s == NULL ) + return 0 ; + #ifdef _PU_USE_GLUT_FONTS if ( glut_font_handle != (GlutFont) 0 ) { |