Skip to content

Commit 4ca2184

Browse files
Merge pull request 'fux bug #73517' (#255) from fix/bug73517 into hotfix/v8.3.2
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/255
2 parents 3b67e4e + 10bf096 commit 4ca2184

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

OOXML/XlsxFormat/Worksheets/SheetData.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1205,12 +1205,12 @@ namespace OOX
12051205
auto ColumnPart = static_cast<XLS::PtgExtraCol*>(BinFmla.rgcb.getPtgs().back().get());
12061206
if(!SharedFormulasRef::sharedRefsLocations)
12071207
return;
1208-
for(auto i = 0; i <SharedFormulasRef::sharedRefsLocations->size(); i++)
1208+
for(const auto& location : *SharedFormulasRef::sharedRefsLocations)
12091209
{
1210-
if(SharedFormulasRef::sharedRefsLocations->at(i).row == rowPart->rowXlsb &&
1211-
SharedFormulasRef::sharedRefsLocations->at(i).column == ColumnPart->col)
1210+
if(location.second.row == rowPart->rowXlsb &&
1211+
location.second.column == ColumnPart->col)
12121212
{
1213-
m_oSi = i;
1213+
m_oSi = location.first;
12141214
m_oT = SimpleTypes::Spreadsheet::ECellFormulaType::cellformulatypeShared;
12151215
}
12161216
}

0 commit comments

Comments
 (0)