From 67ceefce4257bcbf01cd77b7de478f59121d5422 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Sun, 4 Nov 2007 17:22:29 +0000 Subject: [PATCH] Fix for [ 1645874 ] F8, drag, xml editor, expand highligted, select child=crash --- src/text-context.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/text-context.cpp b/src/text-context.cpp index 3bf9dc5a8..02dac6868 100644 --- a/src/text-context.cpp +++ b/src/text-context.cpp @@ -1598,6 +1598,11 @@ sp_text_context_forget_text(SPTextContext *tc) /* We have to set it to zero, * or selection changed signal messes everything up */ tc->text = NULL; + +/* FIXME: this automatic deletion when nothing is inputted crashes the XML edittor and also crashes when duplicating an empty flowtext. + So don't create an empty flowtext in the first place? Create it when first character is typed. + */ +/* if ((SP_IS_TEXT(ti) || SP_IS_FLOWTEXT(ti)) && sp_te_input_is_empty(ti)) { Inkscape::XML::Node *text_repr=SP_OBJECT_REPR(ti); // the repr may already have been unparented @@ -1610,6 +1615,7 @@ sp_text_context_forget_text(SPTextContext *tc) _("Remove empty text")); } } +*/ } gint -- 2.30.2