mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-16 11:45:31 +00:00
switch order of if checks. gets rid of a SF1 P0 bug 300045.
This commit is contained in:
parent
79fb85c788
commit
682346549a
@ -6155,7 +6155,7 @@ lo_SetupBreakState ( LO_TextBlock * block )
|
||||
block->buffer_read_index++;
|
||||
}
|
||||
|
||||
block->last_line_break = block->buffer_read_index;
|
||||
block->last_line_break = block->buffer_read_index;
|
||||
}
|
||||
|
||||
void lo_LayoutTextBlock ( MWContext * context, lo_DocState * state, Bool flushLastLine )
|
||||
@ -6539,7 +6539,7 @@ void lo_LayoutTextBlock ( MWContext * context, lo_DocState * state, Bool flushLa
|
||||
* as if the space was non-breaking, we would not have
|
||||
* broken the line here */
|
||||
|
||||
if ( XP_IS_SPACE ( *text ) && !allTextFits )
|
||||
if ( !allTextFits && XP_IS_SPACE ( *text ) )
|
||||
{
|
||||
/* BRAIN DAMAGE: We should be able to do this at
|
||||
the start of the line */
|
||||
|
Loading…
Reference in New Issue
Block a user