summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorRichard Hughes <cyreve@gmail.com>2006-05-29 20:02:47 +0000
committercyreve <cyreve@users.sourceforge.net>2006-05-29 20:02:47 +0000
commitcab2acdc3680646d2ab23f4a14a756877835e282 (patch)
tree04be6d3054e4d27d8eca6f0306aba49a7087860a /src/libnrtype
parentcomment out libloudmouth (diff)
downloadinkscape-cab2acdc3680646d2ab23f4a14a756877835e282.tar.gz
inkscape-cab2acdc3680646d2ab23f4a14a756877835e282.zip
crash when we try to rasterise with a font that pango can't cope with
(bzr r1071)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/FontFactory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp
index b55dc50c2..32f71aed0 100644
--- a/src/libnrtype/FontFactory.cpp
+++ b/src/libnrtype/FontFactory.cpp
@@ -389,8 +389,10 @@ font_instance *font_factory::Face(PangoFontDescription *descr, bool canFail)
// no match
if ( canFail ) {
PANGO_DEBUG("falling back to Sans\n");
+ descr = pango_font_description_new();
pango_font_description_set_family(descr,"Sans");
res = Face(descr,false);
+ pango_font_description_free(descr);
}
}
} else {