[Libreoffice-commits] core.git: accessibility/source

Stephan Bergmann sbergman at redhat.com
Wed Nov 27 00:15:41 PST 2013


 accessibility/source/standard/vclxaccessiblebox.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 382421189fd7cd421b82d3397dad6860cd6536e8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Nov 27 09:15:14 2013 +0100

    Improve exception message
    
    Change-Id: I06ffe3088546d55b29d61ccfae16937d8a7ce9e8

diff --git a/accessibility/source/standard/vclxaccessiblebox.cxx b/accessibility/source/standard/vclxaccessiblebox.cxx
index 764c0ca..dbb5dcd 100644
--- a/accessibility/source/standard/vclxaccessiblebox.cxx
+++ b/accessibility/source/standard/vclxaccessiblebox.cxx
@@ -422,7 +422,11 @@ sal_Bool SAL_CALL VCLXAccessibleBox::doAccessibleAction (sal_Int32 nIndex)
         ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
 
         if (nIndex<0 || nIndex>=getAccessibleActionCount())
-            throw ::com::sun::star::lang::IndexOutOfBoundsException();
+            throw ::com::sun::star::lang::IndexOutOfBoundsException(
+                ("VCLXAccessibleBox::doAccessibleAction: index "
+                 + OUString::number(nIndex) + " not among 0.."
+                 + OUString::number(getAccessibleActionCount())),
+                static_cast<OWeakObject*>(this));
 
         if (m_aBoxType == COMBOBOX)
         {


More information about the Libreoffice-commits mailing list