https://bugs.documentfoundation.org/show_bug.cgi?id=98493
--- Comment #1 from Alexis PAQUIN <chpa...@gmail.com> --- I find a fix to this bug. I have modify the navipi.cxx file. (/sources/libo-core/sc/sources/navipi/navipi.cxx). The method to modify is : void ScNavigatorDlg::SetCurrentTableStr( const OUString& rName ) the orignal code was : line 957 void ScNavigatorDlg::SetCurrentTableStr( const OUString& rName ) { if (!GetViewData()) return; ScDocument* pDoc = pViewData->GetDocument(); SCTAB nCount = pDoc->GetTableCount(); OUString aTabName; for ( SCTAB i=0; i<nCount; i++ ) { pDoc->GetName( i, aTabName ); if ( aTabName.equals(rName) ) { SetCurrentTable( i ); return; } } } and the fix is : void ScNavigatorDlg::SetCurrentTableStr( const OUString& rName ) { if (!GetViewData()) return; ScDocument* pDoc = pViewData->GetDocument(); SCTAB nCount = pDoc->GetTableCount(); OUString aTabName; SCTAB aLastSheet; for ( SCTAB i=0; i<nCount; i++ ) { pDoc->GetName( i, aTabName ); if ( aTabName.equals(rName) ) { /*check if this is a scenario*/ if ( pDoc->IsScenario(i) ) { SetCurrentTable(aLastSheet); return; } else { SetCurrentTable(i); return; } } else { if ( !pDoc->IsScenario(i) ) aLastSheet = i; } } } Do this fix can be integrate to LO ? Best regards. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs