diff options
Diffstat (limited to 'winaccessibility/source/service/AccFrameEventListener.cxx')
-rw-r--r-- | winaccessibility/source/service/AccFrameEventListener.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winaccessibility/source/service/AccFrameEventListener.cxx b/winaccessibility/source/service/AccFrameEventListener.cxx index 8f7a6bc32753..cf1968d65032 100644 --- a/winaccessibility/source/service/AccFrameEventListener.cxx +++ b/winaccessibility/source/service/AccFrameEventListener.cxx @@ -85,8 +85,8 @@ void AccFrameEventListener::HandleChildChangedEvent(Any oldValue, Any newValue) { XAccessible* pAcc = xChild.get(); - VCLXWindow* pvclwindow = - dynamic_cast<VCLXWindow*>(m_xAccessible.get()); + assert(dynamic_cast<VCLXWindow*>(m_xAccessible.get())); + VCLXWindow* pvclwindow = static_cast<VCLXWindow*>(m_xAccessible.get()); const SystemEnvData* systemdata = pvclwindow->GetWindow()->GetSystemData(); |