diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2015-10-04 08:16:46 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2015-10-04 08:16:46 +0000 |
| commit | 478e6969f70a62349396fa4e57e3c63b5811c165 (patch) | |
| tree | 1e4b82d2818d6cabee8051c4d50b483c100bfe33 /src | |
| parent | Fix for r14372 bug (diff) | |
| download | inkscape-478e6969f70a62349396fa4e57e3c63b5811c165.tar.gz inkscape-478e6969f70a62349396fa4e57e3c63b5811c165.zip | |
Protect against a NULL value for 'font-feature-settings'. "Fixes" #1502432.
Fixed bugs:
- https://launchpad.net/bugs/1502432
(bzr r14395)
Diffstat (limited to 'src')
| -rw-r--r-- | src/style.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/style.cpp b/src/style.cpp index d8402e08a..0cb5db0a7 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -1258,7 +1258,7 @@ SPStyle::getFontFeatureString() { if( font_variant_east_asian.value & SP_CSS_FONT_VARIANT_EAST_ASIAN_RUBY ) feature_string += "ruby, "; - if ( strcmp( font_feature_settings.value, "normal") ) { + if ( font_feature_settings.value && strcmp( font_feature_settings.value, "normal") ) { // We do no sanity checking... feature_string += font_feature_settings.value; feature_string += ", "; |
