Edit accessibility: intended to use dynamic cast here

This is not necessarily a multilineedit.

Change-Id: Ibcbc104513bc6523e61efa5f3ff22efd3422e036
This commit is contained in:
Tamás Zolnai
2016-12-09 13:08:24 +00:00
parent 2832d8d3dc
commit e2c956d8e7

View File

@@ -311,7 +311,7 @@ Sequence< PropertyValue > VCLXAccessibleEdit::getCharacterAttributes( sal_Int32
Sequence< PropertyValue > aProperties = VCLXAccessibleTextComponent::getCharacterAttributes( nIndex, aRequestedAttributes );
// Handle multiline edit character properties
VclPtr<VclMultiLineEdit> pMulitLineEdit = GetAs< VclMultiLineEdit >();
VclPtr<VclMultiLineEdit> pMulitLineEdit = GetAsDynamic< VclMultiLineEdit >();
if ( pMulitLineEdit )
{
ExtTextEngine* pTextEngine = pMulitLineEdit->GetTextEngine();