summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2015-05-09 15:39:31 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2015-05-09 15:39:31 +0000
commit5e862e0de5ba75615a722fff471008a3cedb3212 (patch)
treeb04c952f7734343f684b3c427aa185c36bfaf127 /src/libnrtype
parentduplicating layers now respect prefs for clone relinking (diff)
downloadinkscape-5e862e0de5ba75615a722fff471008a3cedb3212.tar.gz
inkscape-5e862e0de5ba75615a722fff471008a3cedb3212.zip
Fix potential crash in FontLister
(bzr r14135)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/font-lister.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp
index a6ab3b239..70374864a 100644
--- a/src/libnrtype/font-lister.cpp
+++ b/src/libnrtype/font-lister.cpp
@@ -335,7 +335,7 @@ Glib::ustring FontLister::system_fontspec(Glib::ustring fontspec)
PangoFontDescription *descr = pango_font_description_from_string(fontspec.c_str());
font_instance *res = (font_factory::Default())->Face(descr);
- if (res->pFont) {
+ if (res && res->pFont) {
PangoFontDescription *nFaceDesc = pango_font_describe(res->pFont);
out = sp_font_description_get_family(nFaceDesc);
}