diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2017-07-09 11:37:40 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-07-13 20:27:57 +0200 |
commit | a5f0c58cb4e3c23449f2b5f9319e28771a5a22fc (patch) | |
tree | f6bbacb4be90a6e5511ac98f61ddd5a4cfa1e633 /accessibility | |
parent | 5ef84bde43d7e1166bf296f86fb50e245f951f4f (diff) |
Remove possible race condition in VCLXAccessibleEdit.
Change-Id: Id4738462b62d78fa48c937928a01b293cefdfabc
Reviewed-on: https://gerrit.libreoffice.org/39720
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/standard/vclxaccessibleedit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx index c508ce434afe..fb4aa77132ea 100644 --- a/accessibility/source/standard/vclxaccessibleedit.cxx +++ b/accessibility/source/standard/vclxaccessibleedit.cxx @@ -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 ) { |