mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 19:20:13 +00:00
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:
parent
f4d8a163a1
commit
aea8359755
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user