From 5109ce1809a34d125d19dedb7deb2b77755a4e6b Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Thu, 3 Apr 2008 17:58:53 +0000 Subject: [PATCH] Fix variable declared in the middle of the block. (#526021, reported by 2008-04-03 Cody Russell * gtk/gtkprintoperation-win32.c: Fix variable declared in the middle of the block. (#526021, reported by Kazuki IWAMOTO) svn path=/trunk/; revision=19974 --- ChangeLog | 5 +++++ gtk/gtkprintoperation-win32.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 740e83ec57..9ceeb99a3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-03 Cody Russell + + * gtk/gtkprintoperation-win32.c: Fix variable declared in the middle + of the block. (#526021, reported by Kazuki IWAMOTO) + 2008-04-03 Tor Lillqvist Bug 330743 - Up/down spinbuttons won't take zeros and exhibit very diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index a959ac9490..a71f84dd09 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-win32.c @@ -1708,11 +1708,13 @@ _gtk_print_operation_platform_backend_preview_end_page (GtkPrintOperation *op, cairo_surface_t *surface, cairo_t *cr) { + HDC dc; + cairo_surface_show_page (cr); /* TODO: Enhanced metafiles don't support multiple pages. */ - HDC dc = cairo_win32_surface_get_dc (surface); + dc = cairo_win32_surface_get_dc (surface); EndPage (dc); }