diff options
Diffstat (limited to 'sc/source/filter/oox/worksheetfragment.cxx')
-rw-r--r-- | sc/source/filter/oox/worksheetfragment.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/oox/worksheetfragment.cxx b/sc/source/filter/oox/worksheetfragment.cxx index 775e9ad9a3a7..58c35f862115 100644 --- a/sc/source/filter/oox/worksheetfragment.cxx +++ b/sc/source/filter/oox/worksheetfragment.cxx @@ -467,17 +467,17 @@ ContextHandlerRef WorksheetFragment::onCreateContext( sal_Int32 nElement, const case XLS_TOKEN( oleObjects ): if ( getCurrentElement() == XLS_TOKEN( controls ) ) { - if( aMceState.empty() || aMceState.back() == MCE_STATE::Started ) + if( isMCEStateEmpty() || getMCEState() == MCE_STATE::Started ) { if ( getCurrentElement() == XLS_TOKEN( oleObjects ) ) importOleObject( rAttribs ); else importControl( rAttribs ); } - else if ( !aMceState.empty() && aMceState.back() == MCE_STATE::FoundChoice ) + else if ( !isMCEStateEmpty() && getMCEState() == MCE_STATE::FoundChoice ) { // reset the handling within 'Choice' // this will force attempted handling in Fallback - aMceState.back() = MCE_STATE::Started; + setMCEState( MCE_STATE::Started ); } } break; |