Fix for bug #108358. No code review coz its a one liner. Fixes the infinite

loop by letting us break out on a condition that wasn't being checked
earlier in lo_LayoutTextBlock() in laytext.c.  Thanks a lot to Jeff
Caldwell (look@shell.lazerlink.net) for the patch.
This commit is contained in:
nisheeth 1998-06-12 01:16:59 +00:00
parent f4d8a163a1
commit aea8359755

View File

@ -6332,7 +6332,7 @@ void lo_LayoutTextBlock ( MWContext * context, lo_DocState * state, Bool flushLa
}
else
/* do we have an old break position we can use? */
if ( state->old_break_pos != -1 )
if ( state->old_break_pos != -1 && state->old_break_block != NULL )
{
#ifdef LOG
PR_LogPrint ( "Too long - Breaking at the old_break_pos: %ld, width %ld\n"