Kaydet (Commit) 3df2e918 authored tarafından Noel Grandin's avatar Noel Grandin

crashtesting: failure on export of ooo118068-1.ods to ods

since
    commit 7282014e
    Date:   Fri Feb 1 15:15:16 2019 +0100
    tdf#50916 Makes numbers of columns dynamic

Change-Id: Ib8dc06b80beed81a2543f343483599c425e87369
Reviewed-on: https://gerrit.libreoffice.org/70901
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst aebf1925
......@@ -2454,6 +2454,7 @@ public:
void DeleteBroadcasters( sc::ColumnBlockPosition& rBlockPos, const ScAddress& rTopPos, SCROW nLength );
std::unique_ptr<sc::ColumnIterator> GetColumnIterator( SCTAB nTab, SCCOL nCol, SCROW nRow1, SCROW nRow2 ) const;
void CreateColumnIfNotExists( SCTAB nTab, SCCOL nCol );
SC_DLLPUBLIC void StoreTabToCache(SCTAB nTab, SvStream& rStrm) const;
SC_DLLPUBLIC void RestoreTabFromCache(SCTAB nTab, SvStream& rStream);
......
......@@ -916,6 +916,15 @@ std::unique_ptr<sc::ColumnIterator> ScDocument::GetColumnIterator( SCTAB nTab, S
return pTab->GetColumnIterator(nCol, nRow1, nRow2);
}
void ScDocument::CreateColumnIfNotExists( SCTAB nTab, SCCOL nCol )
{
const ScTable* pTab = FetchTable(nTab);
if (!pTab)
return;
pTab->CreateColumnIfNotExists(nCol);
}
bool ScDocument::EnsureFormulaCellResults( const ScRange& rRange, bool bSkipRunning )
{
bool bAnyDirty = false;
......
......@@ -455,6 +455,7 @@ void ScMyDefaultStyles::FillDefaultStyles(const sal_Int32 nTable,
return ;
SCTAB nTab = static_cast<SCTAB>(nTable);
pDoc->CreateColumnIfNotExists(nTab, nLastCol);
sal_Int32 nPos;
ScMyDefaultStyleList* pDefaults = &maColDefaults;
bool bPrevAutoStyle(false);
......
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