summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f7fc188)
raw | patch | inline | side by side (parent: f7fc188)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 27 Jun 2007 00:47:49 +0000 (00:47 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Wed, 27 Jun 2007 00:47:49 +0000 (00:47 +0000) |
src/text-context.cpp | patch | blob | history |
diff --git a/src/text-context.cpp b/src/text-context.cpp
index 670a863acb01f6b10cfcb6ad710bf399b20655d9..b45cd6e58090af5155975ba251de874154852655 100644 (file)
--- a/src/text-context.cpp
+++ b/src/text-context.cpp
layout->getSourceOfCharacter(it, &rawptr);
pos_obj = SP_OBJECT(rawptr);
if (pos_obj == 0) continue;
- while (SP_OBJECT_STYLE(pos_obj) == NULL && SP_OBJECT_PARENT(pos_obj))
- pos_obj = SP_OBJECT_PARENT(pos_obj); // SPStrings don't have style
+ while (SP_IS_STRING(pos_obj) && SP_OBJECT_PARENT(pos_obj)) {
+ pos_obj = SP_OBJECT_PARENT(pos_obj); // SPStrings don't have style
+ }
styles_list = g_slist_prepend(styles_list, (gpointer)pos_obj);
}