From e75f6e549eb825c310d16d11babf0fba5ee7fd7a Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 10 Mar 2016 08:58:00 +0100 Subject: 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 --- sc/source/ui/view/formatsh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') 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(pItem)->GetValue(); - SfxClassificationHelper aHelper(*pDocSh); + SfxClassificationHelper aHelper(pDocSh->getDocProperties()); aHelper.SetBACName(rName); } else -- cgit