summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-16 12:45:21 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-16 12:45:21 +0100
commit81f0c285deb50fcec729168c8736729590c07fa7 (patch)
tree47a700e761d7cba398a8381d4afd6d264be18740 /libreofficekit
parent45b82d9f6d99fb059039f1ef05060b364aecb104 (diff)
lok_docview_init: ignore the second, not the first param
Fixes the crash on startup. Change-Id: I991537644dfb6a5335d08d3d03c3d25491a0c335
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx4
1 files changed, 2 insertions, 2 deletions
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<LOKDocView *>(ptr);
+ LOKDocView* pDocView = reinterpret_cast<LOKDocView *>(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.