]> git.sesse.net Git - vlc/commitdiff
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 a585787081ebed00452e666d15c80a004836c34a..edf7de709d769fba38d2c38f15f2bb981098660d 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 */