summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ed1d70e)
raw | patch | inline | side by side (parent: ed1d70e)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 30 Jul 2008 22:18:14 +0000 (22:18 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 30 Jul 2008 22:18:14 +0000 (22:18 +0000) |
src/text-editing.cpp | patch | blob | history |
diff --git a/src/text-editing.cpp b/src/text-editing.cpp
index 3c4b4da8e91e13f6f95fd62f8ecf3e63f3435a4f..d289397743d18e96fabfac02606a82d816156a4f 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;
- SPObject *next = SP_OBJECT_NEXT(test_item);
- if (next) {
- test_item = next;
- break;
+ if (test_item) {
+ SPObject *next = SP_OBJECT_NEXT(test_item);
+ if (next) {
+ test_item = next;
+ break;
+ }
+ } else {
+ return false;
}
}
if (is_line_break_object(test_item)) { // no next string, see if there's a prev string