[pango] Bug 686512 - pango_cairo_font_get_scaled_font failed under wine
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] Bug 686512 - pango_cairo_font_get_scaled_font failed under wine
- Date: Mon, 10 Dec 2012 01:23:18 +0000 (UTC)
commit 4f75120c8446e7d9bb75393f02d93908f0ea517b
Author: Behdad Esfahbod <behdad behdad org>
Date: Sun Dec 9 20:23:00 2012 -0500
Bug 686512 - pango_cairo_font_get_scaled_font failed under wine
pango/pangocairo-font.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c
index 3b64959..9728101 100644
--- a/pango/pangocairo-font.c
+++ b/pango/pangocairo-font.c
@@ -488,6 +488,8 @@ _pango_cairo_font_private_get_hex_box_info (PangoCairoFontPrivate *cf_priv)
scaled_mini_font = pango_cairo_font_get_scaled_font ((PangoCairoFont *) mini_font);
+ if (G_UNLIKELY (scaled_mini_font == NULL || cairo_scaled_font_status (scaled_mini_font) != CAIRO_STATUS_SUCCESS))
+ return NULL;
for (i = 0 ; i < 16 ; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]