summaryrefslogtreecommitdiff
path: root/desktop/source/lib
diff options
context:
space:
mode:
authorGabriel Masei <gabriel.masei@1and1.ro>2024-01-19 18:11:42 +0200
committerHenry Castro <hcastro@collabora.com>2024-01-19 18:34:21 +0100
commit8c10c63388502322ac0ac6a7e5b14e657edbe630 (patch)
treef984163ae7ab875d9e882b6c6fa3f207efe5e248 /desktop/source/lib
parent26aa2e799a22b2a95cf865ac0fd57df1262d4a0a (diff)
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 <hcastro@collabora.com>
Diffstat (limited to 'desktop/source/lib')
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index dc6931e931bb..a2675fd97871 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -2762,8 +2762,6 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis,
Application::SetDialogCancelMode(DialogCancelMode::LOKSilent);
}
- const OUString sFilterOptions = aOptions;
-
rtl::Reference<LOKInteractionHandler> const pInteraction(
new LOKInteractionHandler("load"_ostr, pLib));
auto const pair(pLib->mInteractionMap.insert(std::make_pair(aURL.toUtf8(), pInteraction)));
@@ -2799,7 +2797,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(u"FilterOptions"_ustr, sFilterOptions),
+ comphelper::makePropertyValue(u"FilterOptions"_ustr, aOptions),
comphelper::makePropertyValue(u"InteractionHandler"_ustr, xInteraction),
comphelper::makePropertyValue(u"MacroExecutionMode"_ustr, nMacroExecMode),
comphelper::makePropertyValue(u"AsTemplate"_ustr, false),