[cairo-commit] src/cairo-surface.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Apr 12 17:14:28 PDT 2007


 src/cairo-surface.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree 04164c996cad242a25c2af596ffcd3b07ba19289 (from 7224e1a6e6eb474a3809d07f9540c959b3da10b2)
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Apr 12 20:14:23 2007 -0400

    [cairo-surface] Make sure cairo_surface_get_font_options() fully initializes
    the font_options passed in.

diff --git a/src/cairo-surface.c b/src/cairo-surface.c
index c6f64eb..efd1936 100644
--- a/src/cairo-surface.c
+++ b/src/cairo-surface.c
@@ -572,10 +572,10 @@ cairo_surface_get_font_options (cairo_su
     if (!surface->has_font_options) {
 	surface->has_font_options = TRUE;
 
+	_cairo_font_options_init_default (&surface->font_options);
+
 	if (!surface->finished && surface->backend->get_font_options) {
 	    surface->backend->get_font_options (surface, &surface->font_options);
-	} else {
-	    _cairo_font_options_init_default (&surface->font_options);
 	}
     }
 


More information about the cairo-commit mailing list