summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2002-11-21 07:17:27 +0000
committerPeter Burow <pb@openoffice.org>2002-11-21 07:17:27 +0000
commit807bf6fa6a37c616e8ae15684c46137f8657a8b3 (patch)
treefd49da7f8c28def57cc4460c7c35b26ea871e8f0 /svtools
parent2554e92218d7ea45868ea264da2683f5343079b2 (diff)
fix: #104938# EXPANDABLE state always set
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/svtreebx.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/svtools/source/contnr/svtreebx.cxx b/svtools/source/contnr/svtreebx.cxx
index 3e6d92126aa9..2321a7454799 100644
--- a/svtools/source/contnr/svtreebx.cxx
+++ b/svtools/source/contnr/svtreebx.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svtreebx.cxx,v $
*
- * $Revision: 1.25 $
+ * $Revision: 1.26 $
*
- * last change: $Author: gt $ $Date: 2002-10-28 07:48:30 $
+ * last change: $Author: pb $ $Date: 2002-11-21 08:17:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2518,14 +2518,10 @@ void SvTreeListBox::FillAccessibleEntryStateSet( SvLBoxEntry* pEntry, ::utl::Acc
{
DBG_ASSERT( pEntry, "SvTreeListBox::FillAccessibleEntryStateSet: invalid entry" );
- // expandable if children exist
- if ( GetChildCount( pEntry ) )
- {
- rStateSet.AddState( AccessibleStateType::EXPANDABLE );
- sal_Int16 nState = IsExpanded( pEntry ) ? (sal_Int16)AccessibleStateType::EXPANDED
- : (sal_Int16)AccessibleStateType::COLLAPSED;
- rStateSet.AddState( nState );
- }
+ rStateSet.AddState( AccessibleStateType::EXPANDABLE );
+ sal_Int16 nState = IsExpanded( pEntry ) ? (sal_Int16)AccessibleStateType::EXPANDED
+ : (sal_Int16)AccessibleStateType::COLLAPSED;
+ rStateSet.AddState( nState );
if ( GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED )
rStateSet.AddState( AccessibleStateType::CHECKED );