diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2013-02-05 20:50:41 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2013-02-05 20:50:41 +0000 |
| commit | 39e5510c9bed6a057db554fbcfd2e4b77aea1d76 (patch) | |
| tree | 7adc5d85a2261fbe978e36993dca46aaeafacad2 /src/widgets | |
| parent | Win32. Fixing Glib and GTKmm deprecations. (diff) | |
| download | inkscape-39e5510c9bed6a057db554fbcfd2e4b77aea1d76.tar.gz inkscape-39e5510c9bed6a057db554fbcfd2e4b77aea1d76.zip | |
Supress Pango error message.
(bzr r12103)
Diffstat (limited to 'src/widgets')
| -rw-r--r-- | src/widgets/font-selector.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/font-selector.cpp b/src/widgets/font-selector.cpp index 0f0e27746..b0b4b5504 100644 --- a/src/widgets/font-selector.cpp +++ b/src/widgets/font-selector.cpp @@ -466,7 +466,9 @@ unsigned int sp_font_selector_get_best_style (font_instance *font, GList *list) tempFont = NULL; } - pango_font_description_unset_fields(bestMatchForFont, PANGO_FONT_MASK_SIZE); + if( bestMatchForFont != NULL ) { + pango_font_description_unset_fields(bestMatchForFont, PANGO_FONT_MASK_SIZE); + } list = list->next; |
