Commits

Anonymous committed 3d91e24

container_controls: fix core when encountering unsupported controls ( e.g. spinbutton in my case )

  • Participants
  • Parent commits 606fb2e

Comments (0)

Files changed (1)

File oox/source/ole/vbacontrol.cxx

         {
             VbaFormControlRef xControl = *aIt;
             const ControlModelBase* pCtrlModel = xControl->mxCtrlModel.get();
-
+            if ( !pCtrlModel ) // skip unsupported controls
+                continue;
             if( const AxOptionButtonModel* pOptButtonModel = dynamic_cast< const AxOptionButtonModel* >( pCtrlModel ) )
             {
                 // check if a new option group needs to be created