diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-10 11:46:24 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2013-12-10 11:53:48 +0100 |
commit | 088756cb2d67442f7d422ca064ab1dcdb410411f (patch) | |
tree | 26306d4584aa87e6815f16b54ae173bbc44e3ffd /sfx2 | |
parent | 5f29e8ab2437ae621bc82c0c69cf2b4e3f5baa61 (diff) |
fdo#72037: Fix comparison of indexOf values after string conversion.
regression from 9daa4f31944e1b9510b092ab9fdd433984c85d10
Change-Id: I369a9a342984084f5269bcd9d829c42de9ac4a23
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index edc0bc536ef1..50f8ee613697 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -1855,7 +1855,7 @@ ErrCode SfxMacroLoader::loadMacro( const OUString& rURL, com::sun::star::uno::An ErrCode nErr = ERRCODE_NONE; // should a macro function be executed ( no direct API call)? - if ( -1 != nHashPos && nHashPos < nArgsPos ) + if ( -1 != nHashPos && ( -1 == nArgsPos || nHashPos < nArgsPos ) ) { // find BasicManager SfxObjectShell* pDoc = NULL; |