diff options
-rw-r--r-- | svtools/source/control/valueacc.cxx | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx index e5a7a98e4faf..098ee4b58fb6 100644 --- a/svtools/source/control/valueacc.cxx +++ b/svtools/source/control/valueacc.cxx @@ -286,17 +286,19 @@ OUString SAL_CALL ValueSetAcc::getAccessibleName() const SolarMutexGuard aSolarGuard; OUString aRet; - if ( mpParent ) + if (mpParent) + { aRet = mpParent->GetAccessibleName(); - if ( aRet.isEmpty() ) - { - Window* pLabel = mpParent->GetAccessibleRelationLabeledBy(); - if ( pLabel && pLabel != mpParent ) - aRet = OutputDevice::GetNonMnemonicString( pLabel->GetText() ); + if ( aRet.isEmpty() ) + { + Window* pLabel = mpParent->GetAccessibleRelationLabeledBy(); + if ( pLabel && pLabel != mpParent ) + aRet = OutputDevice::GetNonMnemonicString( pLabel->GetText() ); - if (aRet.isEmpty()) - aRet = mpParent->GetQuickHelpText(); + if (aRet.isEmpty()) + aRet = mpParent->GetQuickHelpText(); + } } return aRet; |