diff options
| author | Martin Owens <doctormo@gmail.com> | 2018-09-26 20:53:15 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2018-09-26 20:53:15 +0000 |
| commit | 2e0d4959a34f75a64f96b8c3c7ec99182b4332af (patch) | |
| tree | ac50395fcfbe9cd7f16f8d5da7cfdc85ba3ed52e /src/style-internal.cpp | |
| parent | Merge branch 'style-internal-refactor' (diff) | |
| download | inkscape-2e0d4959a34f75a64f96b8c3c7ec99182b4332af.tar.gz inkscape-2e0d4959a34f75a64f96b8c3c7ec99182b4332af.zip | |
Fix crash in URL get_value when url not set.
Diffstat (limited to 'src/style-internal.cpp')
| -rw-r--r-- | src/style-internal.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp index ed81b9bcb..f9c550684 100644 --- a/src/style-internal.cpp +++ b/src/style-internal.cpp @@ -1712,7 +1712,8 @@ SPIFilter::read( gchar const *str ) { const Glib::ustring SPIFilter::get_value() const { if (this->inherit) return Glib::ustring("inherit"); - return this->href->getURI()->toStdString(true); + if (this->href) return this->href->getURI()->toStdString(true); + return Glib::ustring(""); } void |
