diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-08-26 17:59:46 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-10-25 13:41:44 +0100 |
commit | 0fd37a71d3dc81064c8bae45048deb841bfe77f1 (patch) | |
tree | e0c258a8c241254ede19c9ed4e9034086dd95b65 | |
parent | e94fc5d61c4b5863a92f7451304037f42d21f35c (diff) |
cleanup assertion
-rw-r--r-- | vcl/unx/gtk/app/gtkdata.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/unx/gtk/app/gtkdata.cxx b/vcl/unx/gtk/app/gtkdata.cxx index 4467d0784afa..d04f01317986 100644 --- a/vcl/unx/gtk/app/gtkdata.cxx +++ b/vcl/unx/gtk/app/gtkdata.cxx @@ -839,7 +839,9 @@ gboolean GtkXLib::userEventFn(gpointer data) //m_pGtkSalDisplay was destroyed by X11SalData::DeleteDisplay if (pDisplay) { - OSL_ASSERT(pThis->m_pGtkSalDisplay == pDisplay); +#if !GTK_CHECK_VERSION(3,0,0) + OSL_ASSERT(static_cast<const SalDisplay *>(pThis->m_pGtkSalDisplay) == pDisplay); +#endif pThis->m_pGtkSalDisplay->EventGuardAcquire(); if( !pThis->m_pGtkSalDisplay->HasMoreEvents() ) |