Kaydet (Commit) 4a514e21 authored tarafından Noel Grandin's avatar Noel Grandin

tdf#121263 Calc crashes when hide multiple sheets

regression from
	commit 87c06415
    clang-tidy performance-unnecessary-copy-init in sc

Change-Id: I49a7099c0a5e9e684008d2e799f9ee94f867d786
Reviewed-on: https://gerrit.libreoffice.org/63239
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst dc134874
...@@ -3045,7 +3045,8 @@ void ScViewFunc::HideTable( const ScMarkData& rMark ) ...@@ -3045,7 +3045,8 @@ void ScViewFunc::HideTable( const ScMarkData& rMark )
ScMarkData::MarkedTabsType::const_iterator it; ScMarkData::MarkedTabsType::const_iterator it;
std::vector<SCTAB> undoTabs; std::vector<SCTAB> undoTabs;
const ScMarkData::MarkedTabsType& selectedTabs = rMark.GetSelectedTabs(); // need to take a copy of selectedtabs since it is modified in the loop
const ScMarkData::MarkedTabsType selectedTabs = rMark.GetSelectedTabs();
for (it=selectedTabs.begin(); it!=selectedTabs.end(); ++it) for (it=selectedTabs.begin(); it!=selectedTabs.end(); ++it)
{ {
nTab = *it; nTab = *it;
......
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