basic/source/classes/eventatt.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a166418b48ddcc24139a54f9a9b8a902fbb1e641
Author: Miklos Vajna <[email protected]>
Date:   Wed Nov 7 18:22:59 2012 +0100

    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

diff --git a/basic/source/classes/eventatt.cxx 
b/basic/source/classes/eventatt.cxx
index 15b1836..24c84e6 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;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to