introduced a mutex guard for SmGraphicAccessible::setCaretPosition()

This commit is contained in:
Takeshi Abe 2011-04-09 08:38:15 +09:00
parent a5a6a1ee9d
commit 47bd18c074

View file

@ -462,6 +462,7 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getCaretPosition()
sal_Bool SAL_CALL SmGraphicAccessible::setCaretPosition( sal_Int32 nIndex )
throw (IndexOutOfBoundsException, RuntimeException)
{
SolarMutexGuard aGuard;
xub_StrLen nIdx = (xub_StrLen) nIndex;
String aTxt( GetAccessibleText_Impl() );
if (!(nIdx < aTxt.Len()))