diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-10-01 21:58:55 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2018-10-01 21:58:55 +0000 |
| commit | a1973b440556a1c5b820406e3aa01866a8b28cec (patch) | |
| tree | b2ed39133eb65d768eba1a723ceaee7930fdb948 /src/file.cpp | |
| parent | Fix warnings in LPE ruler (diff) | |
| download | inkscape-a1973b440556a1c5b820406e3aa01866a8b28cec.tar.gz inkscape-a1973b440556a1c5b820406e3aa01866a8b28cec.zip | |
End fix bug bug:#1769679 #18; Crash when opening file with live path effect
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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<SPDefs *>(doc->getDefs()); + if (defs && !existing) { + defs->emitModified(SP_OBJECT_MODIFIED_CASCADE); + } return TRUE; } else if (!cancelled) { gchar *safeUri = Inkscape::IO::sanitizeString(uri.c_str()); |
