Code

slight tweak to r19493 to ensure that there's no possibility that we might accidental...
authorcyreve <cyreve@users.sourceforge.net>
Thu, 31 Jul 2008 18:21:03 +0000 (18:21 +0000)
committercyreve <cyreve@users.sourceforge.net>
Thu, 31 Jul 2008 18:21:03 +0000 (18:21 +0000)
src/text-editing.cpp

index d289397743d18e96fabfac02606a82d816156a4f..ffac0e2279d2277a839a48e83bb81d26d161fe56 100644 (file)
@@ -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