Code

Revert back to old is_line_break_object() to fix problems with line breaks in first...
authorgbanaszk <gbanaszk@users.sourceforge.net>
Tue, 25 Sep 2007 18:49:20 +0000 (18:49 +0000)
committergbanaszk <gbanaszk@users.sourceforge.net>
Tue, 25 Sep 2007 18:49:20 +0000 (18:49 +0000)
src/text-editing.cpp

index 02fec31d170f04495d7c8ae4ba753b85d815ba77..193ae7d6edc0dbedf462fdce11d673fc2eede415 100644 (file)
@@ -153,6 +153,7 @@ static bool is_line_break_object(SPObject const *object)
     
     if (object) {
         if (SP_IS_TEXT(object)
+                || (SP_IS_TSPAN(object) && SP_TSPAN(object)->role != SP_TSPAN_ROLE_UNSPECIFIED)
                 || SP_IS_TEXTPATH(object)
                 || SP_IS_FLOWDIV(object)
                 || SP_IS_FLOWPARA(object)
@@ -161,13 +162,6 @@ static bool is_line_break_object(SPObject const *object)
                     
             is_line_break = true;
         }
-        
-        if (SP_IS_TSPAN(object) && SP_TSPAN(object)->role != SP_TSPAN_ROLE_UNSPECIFIED) {            
-            SPObject *prev_object = SP_OBJECT_PREV(object);
-            if (prev_object && SP_IS_TSPAN(prev_object)) {
-                is_line_break = true;
-            }
-        }
     }
     
     return is_line_break;