diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-11-07 18:22:59 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-11-07 18:25:14 +0100 |
commit | a166418b48ddcc24139a54f9a9b8a902fbb1e641 (patch) | |
tree | 54a1d0705f4ec60f46c8c84fd9499e416e0695fd /basic | |
parent | f9c89b0662a3ffbf8af082451beda45f1087738d (diff) |
basic: fix String -> OUString conversion in BasicScriptListener_Impl
Regression from commit ac476e78848ad02fd399633acbe9cb72e40d1235, the
second parameter of OUString::copy() is not the end position, but the
length. In practice this makes xray usable again.
Change-Id: I9f345648c851b61e2e3c581bc605af7df4c12c87
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/eventatt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx index 15b1836bf1a1..24c84e6ff515 100644 --- a/basic/source/classes/eventatt.cxx +++ b/basic/source/classes/eventatt.cxx @@ -216,7 +216,7 @@ void BasicScriptListener_Impl::firing_impl( const ScriptEvent& aScriptEvent, Any } OUString aModul = aMacro.getToken( (sal_Int32)0, (sal_Unicode)'.', nLast ); - aMacro = aMacro.copy( nLast , aMacro.getLength()); + aMacro = aMacro.copy( nLast , aMacro.getLength() - nLast); } SbxObject* p = maBasicRef; |