diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/thumbnailviewacc.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx index dfc274ba8a25..93e31bcb1ff6 100644 --- a/sfx2/source/control/thumbnailviewacc.cxx +++ b/sfx2/source/control/thumbnailviewacc.cxx @@ -217,13 +217,14 @@ OUString SAL_CALL ThumbnailViewAcc::getAccessibleName() OUString aRet; if ( mpParent ) - aRet = mpParent->GetAccessibleName(); - - if ( aRet.isEmpty() ) { - Window* pLabel = mpParent->GetAccessibleRelationLabeledBy(); - if ( pLabel && pLabel != mpParent ) - aRet = OutputDevice::GetNonMnemonicString( pLabel->GetText() ); + aRet = mpParent->GetAccessibleName(); + if (aRet.isEmpty()) + { + Window* pLabel = mpParent->GetAccessibleRelationLabeledBy(); + if (pLabel && pLabel != mpParent) + aRet = OutputDevice::GetNonMnemonicString( pLabel->GetText() ); + } } return aRet; |