summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--gtk/gtkprintoperation-win32.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 740e83ec57..9ceeb99a3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-03 Cody Russell <bratsche@gnome.org>
+
+ * gtk/gtkprintoperation-win32.c: Fix variable declared in the middle
+ of the block. (#526021, reported by Kazuki IWAMOTO)
+
2008-04-03 Tor Lillqvist <tml@novell.com>
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);
}