From 91de0e06695367f72d6717dd23b80a246d18512b Mon Sep 17 00:00:00 2001 From: cyreve Date: Thu, 31 Jul 2008 18:21:03 +0000 Subject: [PATCH] slight tweak to r19493 to ensure that there's no possibility that we might accidentally alter an SPString outside of the flowtext --- src/text-editing.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/text-editing.cpp b/src/text-editing.cpp index d28939774..ffac0e227 100644 --- a/src/text-editing.cpp +++ b/src/text-editing.cpp @@ -1669,14 +1669,11 @@ static bool tidy_operator_styled_whitespace(SPObject **item) for ( ; ; ) { // go up one item in the xml test_item = SP_OBJECT_PARENT(test_item); if (is_line_break_object(test_item)) break; - if (test_item) { - SPObject *next = SP_OBJECT_NEXT(test_item); - if (next) { - test_item = next; - break; - } - } else { - return false; + if (SP_IS_FLOWTEXT(test_item)) return false; + SPObject *next = SP_OBJECT_NEXT(test_item); + if (next) { + test_item = next; + break; } } if (is_line_break_object(test_item)) { // no next string, see if there's a prev string -- 2.30.2