summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurimas FiĊĦeras <aurimas@members.fsf.org>2012-12-16 13:41:31 +0200
committerMichael Stahl <mstahl@redhat.com>2013-01-07 16:57:36 +0100
commit80984766863c12009415e28b7d7e8a9fe9255546 (patch)
tree53a4a29be3544fa445fd6ead158b12fad59baf31
parent2a87fd704edfea351b238ef4103ae36927f2b860 (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> (cherry picked from commit 3616640054f4fc18c6e7307ba17e7d89a0f5ae69) Conflicts: desktop/source/app/cmdlineargs.cxx (cherry picked from commit abf0ed8400d7787fec906b21de74698936d40e28) Signed-off-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--desktop/source/app/cmdlineargs.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index 51bdad0ba857..28f805436718 100644
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -520,6 +520,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.matchIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("infilter=")))
{
m_infilter.push_back(oArg.copy(RTL_CONSTASCII_LENGTH("infilter=")));