--- ../../../tmp/kde-paul/cervisiaxbvAxaHEAD 2004-05-19 00:02:08.812627632 +1200 +++ eboxy/interface/sdl_gui/gui_extlabel.cpp 2004-05-19 00:00:16.462707416 +1200 @@ -61,6 +61,7 @@ GUI_Surface *line; int maxwidth = 0; + /* Work out width of text */ if (wordwrap && strchr(linedstr, ' ') != NULL) { bufptr = linedstr; // start of string char *prevword = bufptr; @@ -71,6 +72,7 @@ if(bufptr) bufptr[0] = '\0'; // we're only interested in the line to this point // Render the line, so we can find out how wide it is + if(linestart && strlen(linestart) > 0) { line = font->RenderFast(linestart, textcolor); if(bufptr) bufptr[0] = ' '; @@ -93,6 +95,7 @@ maxwidth = line->GetWidth(); } line->DecRef(); + } prevword = bufptr; if(!bufptr)