From 81f0c285deb50fcec729168c8736729590c07fa7 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 16 Mar 2015 12:45:21 +0100 Subject: lok_docview_init: ignore the second, not the first param Fixes the crash on startup. Change-Id: I991537644dfb6a5335d08d3d03c3d25491a0c335 --- libreofficekit/source/gtk/lokdocview.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libreofficekit') diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index c0f2130fad80..668d6dec77d9 100644 --- a/libreofficekit/source/gtk/lokdocview.cxx +++ b/libreofficekit/source/gtk/lokdocview.cxx @@ -337,9 +337,9 @@ static void lok_docview_class_init( gpointer ptr ) G_TYPE_BOOLEAN); } -static void lok_docview_init( GTypeInstance *, gpointer ptr ) +static void lok_docview_init( GTypeInstance* pInstance, gpointer ) { - LOKDocView* pDocView = static_cast(ptr); + LOKDocView* pDocView = reinterpret_cast(pInstance); // Gtk ScrolledWindow is apparently not fully initialised yet, we specifically // have to set the [hv]adjustment to prevent GTK assertions from firing, see // https://bugzilla.gnome.org/show_bug.cgi?id=438114 for more info. -- cgit