diff options
author | Aurimas FiĊĦeras <aurimas@members.fsf.org> | 2012-12-16 13:41:31 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-01-07 13:27:00 +0000 |
commit | 3616640054f4fc18c6e7307ba17e7d89a0f5ae69 (patch) | |
tree | fb32f930032410f3e1da93a5b4b8b69633f30e23 | |
parent | 475469626b3a92528a9584d6c34f2b44b7eb8d1c (diff) |
fdo#57203 Unknown option: -Embedding
Ignore this option on Windows.
This work-arounds a regression introduced by f4a4ba9ac
Windows appends -Embedding when LibreOffice is called by COM+
Before f4a4ba9ac this option was silently ignored.
Change-Id: I8a727895c9ec8fa4b06aea8ad66b2791ada66dd5
Reviewed-on: https://gerrit.libreoffice.org/1514
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | desktop/source/app/cmdlineargs.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx index 4a8ddcd1f502..be40f87bcc9e 100644 --- a/desktop/source/app/cmdlineargs.cxx +++ b/desktop/source/app/cmdlineargs.cxx @@ -500,6 +500,15 @@ bool CommandLineArgs::InterpretCommandLineParameter( const ::rtl::OUString& aArg return true; } #endif +#ifdef WIN32 + /* fdo#57203 ignore -Embedding on Windows + when LibreOffice is launched by COM+ + */ + else if ( oArg == "Embedding" ) + { + return true; + } +#endif else if ( oArg.matchIgnoreAsciiCase("infilter=")) { m_infilter.push_back(oArg.copy(RTL_CONSTASCII_LENGTH("infilter="))); |