diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2017-04-23 14:18:22 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2017-04-23 14:18:22 +0000 |
| commit | b2b00f8be37ef0c6c378bd2ca11d1d752476361d (patch) | |
| tree | 4d9182671d34949bf634100b3656ce8303a52ba2 /src/text-editing.cpp | |
| parent | avoid double transform of <use> element during copy. (Bug 1679428) (diff) | |
| download | inkscape-b2b00f8be37ef0c6c378bd2ca11d1d752476361d.tar.gz inkscape-b2b00f8be37ef0c6c378bd2ca11d1d752476361d.zip | |
Fix crash when modifying text in "Text and Font" dialog
Fixed bugs:
- https://launchpad.net/bugs/1618015
(bzr r15632)
Diffstat (limited to 'src/text-editing.cpp')
| -rw-r--r-- | src/text-editing.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/text-editing.cpp b/src/text-editing.cpp index 6809a4bc5..193f4b15a 100644 --- a/src/text-editing.cpp +++ b/src/text-editing.cpp @@ -942,9 +942,9 @@ sp_te_set_repr_text_multiline(SPItem *text, gchar const *str) gchar *content = g_strdup (str); repr->setContent(""); - for (auto& child: object->children) { - if (!SP_IS_FLOWREGION(&child) && !SP_IS_FLOWREGIONEXCLUDE(&child)) { - repr->removeChild(child.getRepr()); + for (auto& child: object->childList(false)) { + if (!SP_IS_FLOWREGION(child) && !SP_IS_FLOWREGIONEXCLUDE(child)) { + repr->removeChild(child->getRepr()); } } |
