summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2018-09-26 20:53:15 +0000
committerMartin Owens <doctormo@gmail.com>2018-09-26 20:53:15 +0000
commit2e0d4959a34f75a64f96b8c3c7ec99182b4332af (patch)
treeac50395fcfbe9cd7f16f8d5da7cfdc85ba3ed52e /src/style-internal.cpp
parentMerge branch 'style-internal-refactor' (diff)
downloadinkscape-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.cpp3
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