summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox/workbookfragment.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/oox/workbookfragment.cxx')
-rw-r--r--sc/source/filter/oox/workbookfragment.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx
index 72d2985e536f..49343a831b22 100644
--- a/sc/source/filter/oox/workbookfragment.cxx
+++ b/sc/source/filter/oox/workbookfragment.cxx
@@ -450,7 +450,7 @@ void WorkbookFragment::finalizeImport()
}
// setup structure sizes for the number of sheets
- getFormulaBuffer().SetSheetCount( aSheetFragments.size() );
+ getFormulaBuffer().SetSheetCount( nWorksheetCount );
// create all database ranges and defined names, in that order
getTables().finalizeImport();