From c79112bd3c4febc39eeba5cabe50319f1eb7976c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 5 Jan 2009 16:44:52 +0000 Subject: [PATCH] Revert the logic of the PangoContext check The branch that creates the global PangoContext should only run if there is no global PangoContext already. --- clutter/clutter-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index 588b00a..12bef38 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -452,7 +452,7 @@ update_pango_context (ClutterBackend *backend, PangoContext * _clutter_context_get_pango_context (ClutterMainContext *self) { - if (G_LIKELY (self->pango_context)) + if (G_UNLIKELY (self->pango_context == NULL)) { PangoContext *context; -- 2.7.4