[gimp] file-pdf-load: Rearrange code slightly to group the font options statements together
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] file-pdf-load: Rearrange code slightly to group the font options statements together
- Date: Thu, 2 Feb 2012 16:30:29 +0000 (UTC)
commit 4f3da64f551f5e6add1c17524ae266225fb01ce6
Author: Mukund Sivaraman <muks banu com>
Date: Thu Feb 2 21:56:30 2012 +0530
file-pdf-load: Rearrange code slightly to group the font options statements together
plug-ins/common/file-pdf-load.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/plug-ins/common/file-pdf-load.c b/plug-ins/common/file-pdf-load.c
index 9731fb8..0c30265 100644
--- a/plug-ins/common/file-pdf-load.c
+++ b/plug-ins/common/file-pdf-load.c
@@ -793,15 +793,14 @@ render_page_to_surface (PopplerPage *page,
if (! antialias)
{
- cairo_font_options_t* options = cairo_font_options_create ();
+ cairo_font_options_t *options = cairo_font_options_create ();
cairo_get_font_options (cr, options);
cairo_font_options_set_antialias (options, CAIRO_ANTIALIAS_NONE);
-
cairo_set_font_options (cr, options);
- cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);
-
cairo_font_options_destroy (options);
+
+ cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);
}
poppler_page_render (page, cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]