From: buliabyak Date: Sun, 30 Dec 2007 07:46:30 +0000 (+0000) Subject: fix bug 168751 (sf1749738) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c5d667d47a4a6dfaad6adf9b588d10282eb3b711;p=inkscape.git fix bug 168751 (sf1749738) --- diff --git a/src/sp-text.cpp b/src/sp-text.cpp index 1c677edb2..1609afa92 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -194,7 +194,7 @@ sp_text_child_added (SPObject *object, Inkscape::XML::Node *rch, Inkscape::XML:: if (((SPObjectClass *) text_parent_class)->child_added) ((SPObjectClass *) text_parent_class)->child_added (object, rch, ref); - text->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_TEXT_CONTENT_MODIFIED_FLAG); + text->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG | SP_TEXT_CONTENT_MODIFIED_FLAG | SP_TEXT_LAYOUT_MODIFIED_FLAG); } static void diff --git a/src/text-chemistry.cpp b/src/text-chemistry.cpp index e1eaa47fb..ef5bd90bf 100644 --- a/src/text-chemistry.cpp +++ b/src/text-chemistry.cpp @@ -221,9 +221,9 @@ text_remove_from_path() if (!did) { sp_desktop_message_stack(desktop)->flash(Inkscape::ERROR_MESSAGE, _("No texts-on-paths in the selection.")); } else { - selection->setList(g_slist_copy((GSList *) selection->itemList())); // reselect to update statusbar description sp_document_done(sp_desktop_document(desktop), SP_VERB_CONTEXT_TEXT, _("Remove text from path")); + selection->setList(g_slist_copy((GSList *) selection->itemList())); // reselect to update statusbar description } } 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 }