From b2b00f8be37ef0c6c378bd2ca11d1d752476361d Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sun, 23 Apr 2017 16:18:22 +0200 Subject: Fix crash when modifying text in "Text and Font" dialog Fixed bugs: - https://launchpad.net/bugs/1618015 (bzr r15632) --- src/text-editing.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/text-editing.cpp') 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()); } } -- cgit v1.2.3