diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-11-04 17:22:29 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-11-04 17:22:29 +0000 |
| commit | 6153bebf0f2aae044cd094151ab5b805c47d7325 (patch) | |
| tree | 57ce782d8bbc722499a72ff99d0500d41cb85fbf /src/text-context.cpp | |
| parent | fix perfect bound cover inx to allow for translation (diff) | |
| download | inkscape-6153bebf0f2aae044cd094151ab5b805c47d7325.tar.gz inkscape-6153bebf0f2aae044cd094151ab5b805c47d7325.zip | |
Fix for [ 1645874 ] F8, drag, xml editor, expand highligted, select child=crash
(bzr r4027)
Diffstat (limited to 'src/text-context.cpp')
| -rw-r--r-- | src/text-context.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
