From a1973b440556a1c5b820406e3aa01866a8b28cec Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Mon, 1 Oct 2018 23:58:55 +0200 Subject: End fix bug bug:#1769679 #18; Crash when opening file with live path effect --- src/file.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/file.cpp') diff --git a/src/file.cpp b/src/file.cpp index 464454a65..12b8fe0da 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -60,6 +60,7 @@ #include "io/resource.h" #include "io/sys.h" +#include "object/sp-defs.h" #include "object/sp-namedview.h" #include "object/sp-root.h" #include "style.h" @@ -290,7 +291,11 @@ bool sp_file_open(const Glib::ustring &uri, // Check for font substitutions Inkscape::UI::Dialog::FontSubstitution::getInstance().checkFontSubstitutions(doc); } - + // Related bug:#1769679 #18 + SPDefs * defs = dynamic_cast(doc->getDefs()); + if (defs && !existing) { + defs->emitModified(SP_OBJECT_MODIFIED_CASCADE); + } return TRUE; } else if (!cancelled) { gchar *safeUri = Inkscape::IO::sanitizeString(uri.c_str()); -- cgit v1.2.3