summaryrefslogtreecommitdiffstats
path: root/sw/source/core/doc/textboxhelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc/textboxhelper.cxx')
-rw-r--r--sw/source/core/doc/textboxhelper.cxx16
1 files changed, 1 insertions, 15 deletions
diff --git a/sw/source/core/doc/textboxhelper.cxx b/sw/source/core/doc/textboxhelper.cxx
index 4656e3bec14c..ea57aa58319d 100644
--- a/sw/source/core/doc/textboxhelper.cxx
+++ b/sw/source/core/doc/textboxhelper.cxx
@@ -639,19 +639,8 @@ void SwTextBoxHelper::saveLinks(const SwFrameFormats& rFormats,
}
}
-void SwTextBoxHelper::resetLink(SwFrameFormat* pShape,
- std::map<const SwFrameFormat*, SwFormatContent>& rOldContent)
-{
- if (pShape->Which() == RES_DRAWFRMFMT)
- {
- if (pShape->GetContent().GetContentIdx())
- rOldContent.insert(std::make_pair(pShape, pShape->GetContent()));
- pShape->ResetFormatAttr(RES_CNTNT);
- }
-}
-
void SwTextBoxHelper::restoreLinks(std::set<ZSortFly>& rOld, std::vector<SwFrameFormat*>& rNew,
- SavedLink& rSavedLinks, SavedContent& rResetContent)
+ SavedLink& rSavedLinks)
{
std::size_t i = 0;
for (const auto& rIt : rOld)
@@ -667,9 +656,6 @@ void SwTextBoxHelper::restoreLinks(std::set<ZSortFly>& rOld, std::vector<SwFrame
++j;
}
}
- if (rResetContent.find(rIt.GetFormat()) != rResetContent.end())
- const_cast<SwFrameFormat*>(rIt.GetFormat())
- ->SetFormatAttr(rResetContent[rIt.GetFormat()]);
++i;
}
}