Resolves: #i122678# Workaround for dynamic cast runtime bug

(cherry picked from commit be9ff0830ba1f8b3c782aa269c78657d264e48a9)

Change-Id: I89a7b4ba8680606d97c26b9fde604f63ca814319
This commit is contained in:
Ariel Constenla-Haile 2013-07-06 04:01:21 +00:00 committed by Caolán McNamara
parent aa93c3c9a0
commit f00d4f6dbf

View File

@ -297,8 +297,8 @@ NewToolbarController::execute( sal_Int16 /*KeyModifier*/ )
{
// TODO investigate how to wrap Get/SetUserValue in css::awt::XMenu
MenuConfiguration::Attributes* pMenuAttributes( 0 );
VCLXPopupMenu* pTkPopupMenu = dynamic_cast< VCLXPopupMenu * >(
VCLXMenu::GetImplementation( m_xPopupMenu ) );
VCLXPopupMenu* pTkPopupMenu =
( VCLXPopupMenu * ) VCLXMenu::GetImplementation( m_xPopupMenu );
SolarMutexGuard aSolarMutexGuard;
PopupMenu* pVCLPopupMenu = dynamic_cast< PopupMenu * >( pTkPopupMenu->GetMenu() );