summaryrefslogtreecommitdiffstats
path: root/src/style-internal.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2018-09-27 00:33:13 +0000
committerMartin Owens <doctormo@gmail.com>2018-09-27 00:33:13 +0000
commitd8d99efc5a827e7cedbc228fbfe536bc5e5ed9fb (patch)
tree33f9e2b5699b07343dae5a5060953d541d97d1cd /src/style-internal.cpp
parentFix crash in URL get_value when url not set. (diff)
downloadinkscape-d8d99efc5a827e7cedbc228fbfe536bc5e5ed9fb.tar.gz
inkscape-d8d99efc5a827e7cedbc228fbfe536bc5e5ed9fb.zip
Fix crash in fill and stroke dialog
Diffstat (limited to '')
-rw-r--r--src/style-internal.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/style-internal.cpp b/src/style-internal.cpp
index f9c550684..00d7d64c2 100644
--- a/src/style-internal.cpp
+++ b/src/style-internal.cpp
@@ -1041,6 +1041,7 @@ SPIString::read( gchar const *str ) {
const Glib::ustring SPIString::get_value() const
{
if (this->inherit) return Glib::ustring("inherit");
+ if (!this->value) return Glib::ustring("");
if( name.compare( "font-family" ) == 0 ) {
Glib::ustring font_family( this->value );
css_font_family_quote( font_family );