Fix wx build
authorAlexis Ballier <aballier@gentoo.org>
Thu, 22 May 2008 21:26:46 +0000 (23:26 +0200)
committerRafaël Carré <funman@videolan.org>
Thu, 22 May 2008 21:31:22 +0000 (23:31 +0200)
The ugly casting is correct wrt the vlc_object_t inheritance
Signed-off-by: Rafaël Carré <funman@videolan.org>
modules/gui/wxwidgets/dialogs/preferences.cpp

index a585787..edf7de7 100644 (file)
@@ -586,7 +586,7 @@ PrefsTreeCtrl::PrefsTreeCtrl( wxWindow *_p_parent, intf_thread_t *_p_intf,
 #endif
         config_data->i_type = TYPE_MODULE;
         config_data->p_module = config_data->b_submodule ?
-            p_module->p_parent : p_module;
+            ((module_t*)((vlc_object_t*)p_module)->p_parent) : p_module;
         config_data->psz_help = NULL;
 
         /* WXMSW doesn't know image -1 ... FIXME */