diff options
-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 24c84e6ff515..173a3cee2ac1 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() - nLast); + aMacro = aMacro.copy( nLast ); } SbxObject* p = maBasicRef; |