FIX: Add test for get_defined_name_list
Also uses the scope instead of the opaque sheet_id
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
2ed5fb9bbc
commit
86213a8434
@@ -144,7 +144,12 @@ impl Model {
|
||||
|
||||
/// Reparses all formulas and defined names
|
||||
pub(crate) fn reset_parsed_structures(&mut self) {
|
||||
let defined_names = self.workbook.get_defined_names_with_scope();
|
||||
let defined_names = self
|
||||
.workbook
|
||||
.get_defined_names_with_scope()
|
||||
.iter()
|
||||
.map(|s| (s.0.to_owned(), s.1))
|
||||
.collect();
|
||||
self.parser
|
||||
.set_worksheets_and_names(self.workbook.get_worksheet_names(), defined_names);
|
||||
self.parsed_formulas = vec![];
|
||||
|
||||
Reference in New Issue
Block a user