summaryrefslogtreecommitdiffstats
path: root/src/text-context.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-12-30 07:46:30 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-12-30 07:46:30 +0000
commitf689736d0d12bc8d8374f223288272529face714 (patch)
tree6431a389d1986c28ad767b0fd4dbd50bd6e51927 /src/text-context.cpp
parentStrip out Pango markup from tooltips (fixes bug #167640) (diff)
downloadinkscape-f689736d0d12bc8d8374f223288272529face714.tar.gz
inkscape-f689736d0d12bc8d8374f223288272529face714.zip
fix bug 168751 (sf1749738)
(bzr r4340)
Diffstat (limited to 'src/text-context.cpp')
-rw-r--r--src/text-context.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/text-context.cpp b/src/text-context.cpp
index f97bb26ac..b79dce6c9 100644
--- a/src/text-context.cpp
+++ b/src/text-context.cpp
@@ -1469,8 +1469,9 @@ sp_text_context_style_query(SPStyle *style, int property, SPTextContext *tc)
SPObject const *pos_obj = 0;
void *rawptr = 0;
layout->getSourceOfCharacter(it, &rawptr);
+ if (!rawptr || !SP_IS_OBJECT(rawptr))
+ continue;
pos_obj = SP_OBJECT(rawptr);
- if (pos_obj == 0) continue;
while (SP_IS_STRING(pos_obj) && SP_OBJECT_PARENT(pos_obj)) {
pos_obj = SP_OBJECT_PARENT(pos_obj); // SPStrings don't have style
}