summaryrefslogtreecommitdiff
path: root/sfx2/source/notify
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2013-12-10 11:51:55 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2013-12-10 11:53:48 +0100
commita3f3fd00e4fb6beb70284902791ef9cbc3318659 (patch)
treebaf905ab16c87548d5c040fbd1a40bbf1d828ba3 /sfx2/source/notify
parent088756cb2d67442f7d422ca064ab1dcdb410411f (diff)
Fix another string conversion regression.
Change-Id: I8297fd60b7db057504260a2304ccce6358bb9776
Diffstat (limited to 'sfx2/source/notify')
-rw-r--r--sfx2/source/notify/eventsupplier.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx
index d3095b021d51..3a12c9e1e281 100644
--- a/sfx2/source/notify/eventsupplier.cxx
+++ b/sfx2/source/notify/eventsupplier.cxx
@@ -443,7 +443,7 @@ void SfxEvents_Impl::NormalizeMacro( const ::comphelper::NamedValueCollection& i
{
sal_Int32 nHashPos = aScript.indexOf( '/', 8 );
sal_Int32 nArgsPos = aScript.indexOf( '(' );
- if ( ( nHashPos != -1 ) && ( nHashPos < nArgsPos ) )
+ if ( ( nHashPos != -1 ) && ( nArgsPos == -1 || nHashPos < nArgsPos ) )
{
OUString aBasMgrName( INetURLObject::decode( aScript.copy( 8, nHashPos-8 ), INET_HEX_ESCAPE, INetURLObject::DECODE_WITH_CHARSET ) );
if ( aBasMgrName == "." )