Kaydet (Commit) 81f0c285 authored tarafından Miklos Vajna's avatar Miklos Vajna

lok_docview_init: ignore the second, not the first param

Fixes the crash on startup.

Change-Id: I991537644dfb6a5335d08d3d03c3d25491a0c335
üst 45b82d9f
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment