summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bd705b5)
raw | patch | inline | side by side (parent: bd705b5)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 4 Nov 2007 17:22:29 +0000 (17:22 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sun, 4 Nov 2007 17:22:29 +0000 (17:22 +0000) |
src/text-context.cpp | patch | blob | history |
diff --git a/src/text-context.cpp b/src/text-context.cpp
index 3bf9dc5a87dbd7069cf51d73809b0172622d7ec0..02dac686833240fa3de90d53cb45d6e81aea7ecf 100644 (file)
--- a/src/text-context.cpp
+++ b/src/text-context.cpp
/* 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
_("Remove empty text"));
}
}
+*/
}
gint