From 682346549ae8634f279082a0d7710e1f05e0f8a5 Mon Sep 17 00:00:00 2001 From: toshok Date: Tue, 14 Jul 1998 21:39:00 +0000 Subject: [PATCH] switch order of if checks. gets rid of a SF1 P0 bug 300045. --- lib/layout/laytext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/layout/laytext.c b/lib/layout/laytext.c index 35e4463ccfb2..c61ac365f3bf 100644 --- a/lib/layout/laytext.c +++ b/lib/layout/laytext.c @@ -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 */