Kaydet (Commit) 768da511 authored tarafından Noel Power's avatar Noel Power

force imported xlsx active tab to be shown bnc#748198

weirdly even though a sheet/tab can be marked as hidden in workbook.xml, if that same tab/sheet is the active one then it *will* be shown
üst d453788a
......@@ -498,7 +498,13 @@ void SheetViewSettings::finalizeImport()
// sheet selected (active sheet must be selected)
bool bSelected = xModel->mbSelected || (getSheetIndex() == getViewSettings().getActiveCalcSheet());
if ( bSelected )
{
// active tab/sheet cannot be hidden
// always force it to be displayed
PropertySet aPropSet( getSheet() );
aPropSet.setProperty( PROP_IsVisible, sal_True );
}
// visible area and current cursor position (selection not supported via API)
CellAddress aFirstPos = xModel->maFirstPos;
const PaneSelectionModel* pPaneSel = xModel->getActiveSelection();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment