diff options
| author | Martin Owens <doctormo@gmail.com> | 2014-01-10 02:49:49 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2014-01-10 02:49:49 +0000 |
| commit | bc9b1244c8cf0852df0e23b660b4f7e6123c6ec2 (patch) | |
| tree | 6b2f20240ea6776691eac07a2e2bca334d4c23db /src | |
| parent | new Dutch translation of pixel art tutorial (diff) | |
| download | inkscape-bc9b1244c8cf0852df0e23b660b4f7e6123c6ec2.tar.gz inkscape-bc9b1244c8cf0852df0e23b660b4f7e6123c6ec2.zip | |
Make Sans the default if pango can't get the family name from the font description. Helps fix bug #1230241
Fixed bugs:
- https://launchpad.net/bugs/1230241
(bzr r12908)
Diffstat (limited to 'src')
| -rw-r--r-- | src/libnrtype/font-lister.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libnrtype/font-lister.cpp b/src/libnrtype/font-lister.cpp index 759acfb26..8dd6a2091 100644 --- a/src/libnrtype/font-lister.cpp +++ b/src/libnrtype/font-lister.cpp @@ -286,6 +286,8 @@ namespace Inkscape PangoFontDescription *descr = pango_font_description_from_string(fontspec.c_str()); const gchar* family = pango_font_description_get_family(descr); + if(!family) + family = "Sans"; Glib::ustring Family = family; // PANGO BUG... |
