Kaydet (Commit) 825ba822 authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Miklos Vajna

Filter out "SynchronMode" too

Change-Id: I2c5111ee34929b9740796f5e1f08b3a8a58218e4
Reviewed-on: https://gerrit.libreoffice.org/51964Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
(cherry picked from commit 2147cbf6)
Reviewed-on: https://gerrit.libreoffice.org/52089Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst ab4f89a3
...@@ -200,10 +200,12 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( ...@@ -200,10 +200,12 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification(
int argCount = 0; int argCount = 0;
for ( int index = 0; index < lArgs.getLength(); index++ ) for ( int index = 0; index < lArgs.getLength(); index++ )
{ {
// Sometimes we get a propertyval with name = "Referer" // Sometimes we get a propertyval with name = "Referer" or "SynchronMode". These
// this is not an argument to be passed to script, so // are not actual arguments to be passed to script, but flags describing the
// ignore. // call, so ignore. Who thought that passing such "meta-arguments" mixed in with
if ( lArgs[ index ].Name != "Referer" || // real arguments was a good idea?
if ( (lArgs[ index ].Name != "Referer" &&
lArgs[ index ].Name != "SynchronMode") ||
lArgs[ index ].Name.isEmpty() ) //TODO:??? lArgs[ index ].Name.isEmpty() ) //TODO:???
{ {
inArgs.realloc( ++argCount ); inArgs.realloc( ++argCount );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment