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
This commit is contained in:
Paul Cornett 2014-04-01 17:45:01 +00:00
parent 0930541da9
commit 0da8eb2786

View File

@ -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;