summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh1.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-04-02 16:50:15 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-04-02 20:22:40 +0100
commit0e0e3caf382f793481b638417540d05c1d1ed24a (patch)
tree4cf268f5dd5b0e44cf49c32681af11033ec33246 /sc/source/ui/view/cellsh1.cxx
parentf834d986d5a1e7e66f4029476d058fbf5f63d8d1 (diff)
Don't instantiate ScDocFunc objects, get them from the doc-shell
Diffstat (limited to 'sc/source/ui/view/cellsh1.cxx')
-rw-r--r--sc/source/ui/view/cellsh1.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 99921c767317..35c162f8b821 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -2156,9 +2156,8 @@ void ScCellShell::ExecuteExternalSource(
else
aLinkRange = ScRange( pData->GetCurX(), pData->GetCurY(), pData->GetTabNo() );
- ScDocFunc aFunc(*pData->GetDocShell());
- aFunc.InsertAreaLink( _rFile, _rFilter, _rOptions, _rSource,
- aLinkRange, _nRefresh, bMove, false );
+ pData->GetDocFunc().InsertAreaLink( _rFile, _rFilter, _rOptions, _rSource,
+ aLinkRange, _nRefresh, bMove, false );
_rRequest.Done();
}
else