summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 29be037)
raw | patch | inline | side by side (parent: 29be037)
author | cyreve <cyreve@users.sourceforge.net> | |
Thu, 31 Jul 2008 18:21:03 +0000 (18:21 +0000) | ||
committer | cyreve <cyreve@users.sourceforge.net> | |
Thu, 31 Jul 2008 18:21:03 +0000 (18:21 +0000) |
src/text-editing.cpp | patch | blob | history |
diff --git a/src/text-editing.cpp b/src/text-editing.cpp
index d289397743d18e96fabfac02606a82d816156a4f..ffac0e2279d2277a839a48e83bb81d26d161fe56 100644 (file)
--- a/src/text-editing.cpp
+++ b/src/text-editing.cpp
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