From 0da8eb2786c4b5d1a375e5bda786c7e060fde91c Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 1 Apr 2014 17:45:01 +0000 Subject: [PATCH] Fix invalid use of g_object_get_property() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/print.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/print.cpp b/src/gtk/print.cpp index 19c0be9017..b163adce60 100644 --- a/src/gtk/print.cpp +++ b/src/gtk/print.cpp @@ -1044,8 +1044,8 @@ void wxGtkPrinter::DrawPage(wxPrintout *printout, switch (gtk_print_settings_get_print_pages(settings)) { case GTK_PRINT_PAGES_CURRENT: - g_object_get_property((GObject*) operation, (const gchar *) "current-page", (GValue*) &startPage); - g_object_get_property((GObject*) operation, (const gchar *) "current-page", (GValue*) &endPage); + g_object_get(G_OBJECT(operation), "current-page", &startPage, NULL); + endPage = startPage; break; case GTK_PRINT_PAGES_RANGES: {gint num_ranges = 0;