]> Pileus Git - ~andy/gtk/commitdiff
Fix variable declared in the middle of the block. (#526021, reported by
authorCody Russell <bratsche@gnome.org>
Thu, 3 Apr 2008 17:58:53 +0000 (17:58 +0000)
committerCody Russell <bratsche@src.gnome.org>
Thu, 3 Apr 2008 17:58:53 +0000 (17:58 +0000)
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)

svn path=/trunk/; revision=19974

ChangeLog
gtk/gtkprintoperation-win32.c

index 740e83ec57a288619e8193aaf4b8cfe007016913..9ceeb99a3cae76f92caf03217eba8fa548e76f36 100644 (file)
--- 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
index a959ac9490dba37e6ad955efc1816d93c920cee1..a71f84dd0973a2b852335cb15d2279043cd91413 100644 (file)
@@ -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);
 }