Kaydet (Commit) a5f0c58c authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Markus Mohrhard

Remove possible race condition in VCLXAccessibleEdit.

Change-Id: Id4738462b62d78fa48c937928a01b293cefdfabc
Reviewed-on: https://gerrit.libreoffice.org/39720Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 5ef84bde
......@@ -458,10 +458,10 @@ OUString VCLXAccessibleEdit::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEnd
css::accessibility::TextSegment VCLXAccessibleEdit::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType )
{
OExternalLockGuard aGuard( this );
// Override general text component behavior: MultiLineEdit can have more text portions
if ( aTextType == AccessibleTextType::ATTRIBUTE_RUN )
{
OExternalLockGuard aGuard( this );
VclPtr<VclMultiLineEdit> pMulitLineEdit = GetAsDynamic< VclMultiLineEdit >();
if ( pMulitLineEdit )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment