summaryrefslogtreecommitdiffstats
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-07-06 18:39:20 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-07-08 00:20:22 +0200
commit018b59833878afc6f1a4a2489e83235d508e2702 (patch)
tree44c462420e3c45ff05564a7ab4cd429477ead132 /sw/source/uibase
parentHandle protection lock mark in Undo/Redo, tdf#95880 follow-up (diff)
downloadcore-018b59833878afc6f1a4a2489e83235d508e2702.tar.gz
core-018b59833878afc6f1a4a2489e83235d508e2702.zip
tdf#115890 sw: fix invalid cast in SwContentTree::GetEntryAltText()
AccessibleListBoxEntry calls this for any entry. This was always broken but now we have asserts to tell us about it. Change-Id: I7094a1dfbffd359e0f536ca60cba2478e2a62464 Reviewed-on: https://gerrit.libreoffice.org/57086 Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Tested-by: Jenkins (cherry picked from commit 2986f4baa8bdef1f9ab9108240ea890075321be1) Reviewed-on: https://gerrit.libreoffice.org/57099 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/utlui/content.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index cc554dbd6ea1..1eeb25ef635f 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -902,7 +902,7 @@ Size SwContentTree::GetOptimalSize() const
OUString SwContentTree::GetEntryAltText( SvTreeListEntry* pEntry ) const
{
- if( pEntry == nullptr)
+ if (pEntry == nullptr || !lcl_IsContent(pEntry))
return OUString();
assert(pEntry->GetUserData() == nullptr || dynamic_cast<SwContent*>(static_cast<SwTypeNumber*>(pEntry->GetUserData())));