summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-03-10 08:58:00 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-03-10 14:31:54 +0100
commite75f6e549eb825c310d16d11babf0fba5ee7fd7a (patch)
tree288931d9af316722f730b9909e2d9cda37da2625 /sc
parentb84f5a0efa4a24a3e8074bc27fb21529b9c4d3a6 (diff)
sfx2: make SfxClassificationHelper not require a full doc shell
So that input filters can build their own doc properties and can also use CheckPaste() without having the full original document around. Change-Id: I0b8a63702f73ce04e8728a360b56ab9d1ca67af1
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/formatsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index b4114b9ee38b..714348725f1e 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -974,7 +974,7 @@ void ScFormatShell::ExecuteStyle( SfxRequest& rReq )
if (pArgs && pArgs->GetItemState(nSlotId, false, &pItem) == SfxItemState::SET)
{
const OUString& rName = static_cast<const SfxStringItem*>(pItem)->GetValue();
- SfxClassificationHelper aHelper(*pDocSh);
+ SfxClassificationHelper aHelper(pDocSh->getDocProperties());
aHelper.SetBACName(rName);
}
else