desktop/source/lib/init.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 37973107356d47cfa6ad197cb778ecfeef3a9e99 Author: Gabriel Masei <gabriel.ma...@1and1.ro> AuthorDate: Fri Jan 19 18:11:42 2024 +0200 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Feb 7 13:11:33 2024 +0100 lok: remove non-filter options from filter options Filter options should be what remains after extracting any other options from the original list of options. Change-Id: Iad787b34aba58c3910118e94df66a102b44034c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162316 Tested-by: Jenkins Reviewed-by: Henry Castro <hcas...@collabora.com> (cherry picked from commit 8c10c63388502322ac0ac6a7e5b14e657edbe630) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162450 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 238f2f76d935..9b5f50b2a93a 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2785,8 +2785,6 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis, Application::SetDialogCancelMode(DialogCancelMode::LOKSilent); } - const OUString sFilterOptions = aOptions; - rtl::Reference<LOKInteractionHandler> const pInteraction( new LOKInteractionHandler("load", pLib)); auto const pair(pLib->mInteractionMap.insert(std::make_pair(aURL.toUtf8(), pInteraction))); @@ -2822,7 +2820,7 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis, // as regular files, otherwise we cannot save them; it will try // to bring saveas dialog which cannot work with LOK case uno::Sequence<css::beans::PropertyValue> aFilterOptions{ - comphelper::makePropertyValue("FilterOptions", sFilterOptions), + comphelper::makePropertyValue("FilterOptions", aOptions), comphelper::makePropertyValue("InteractionHandler", xInteraction), comphelper::makePropertyValue("MacroExecutionMode", nMacroExecMode), comphelper::makePropertyValue("AsTemplate", false),