[Libreoffice-commits] core.git: framework/source

Ariel Constenla-Haile arielch at apache.org
Mon Jul 8 03:00:58 PDT 2013


 framework/source/uielement/popuptoolbarcontroller.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f00d4f6dbf393bb41195430b1f54acbbefb85d9c
Author: Ariel Constenla-Haile <arielch at apache.org>
Date:   Sat Jul 6 04:01:21 2013 +0000

    Resolves: #i122678# Workaround for dynamic cast runtime bug
    
    (cherry picked from commit be9ff0830ba1f8b3c782aa269c78657d264e48a9)
    
    Change-Id: I89a7b4ba8680606d97c26b9fde604f63ca814319

diff --git a/framework/source/uielement/popuptoolbarcontroller.cxx b/framework/source/uielement/popuptoolbarcontroller.cxx
index 26ac39c..1660e6c 100644
--- a/framework/source/uielement/popuptoolbarcontroller.cxx
+++ b/framework/source/uielement/popuptoolbarcontroller.cxx
@@ -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() );


More information about the Libreoffice-commits mailing list