summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorDennis Francis <dennisfrancis.in@gmail.com>2016-01-30 17:54:58 +0530
committerEike Rathke <erack@redhat.com>2016-03-10 14:45:25 +0000
commitd799daa48987c4fa19696967dd98f690e7b94c4f (patch)
tree3c1b3266825a8435f91f231d2c33b03d8782fd7e /svtools
parent3b0fda641467cc99ef86eb538de02b7bfda8fae0 (diff)
tdf#97344 : Allow focus change using mouse in autofilter popup
Also modified CycleFocus() to skip controls that are disabled. Change-Id: I6d84e0d4aacc719b83c70e92a17f58f1756ff072 Reviewed-on: https://gerrit.libreoffice.org/21922 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/treelistbox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index d63925775588..ec9831044721 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -1960,7 +1960,7 @@ void SvTreeListBox::SetCheckButtonInvisible( SvTreeListEntry* pEntry)
SvButtonState SvTreeListBox::GetCheckButtonState( SvTreeListEntry* pEntry ) const
{
SvButtonState eState = SV_BUTTON_UNCHECKED;
- if( nTreeFlags & SvTreeFlags::CHKBTN )
+ if( pEntry && ( nTreeFlags & SvTreeFlags::CHKBTN ) )
{
SvLBoxButton* pItem = static_cast<SvLBoxButton*>(pEntry->GetFirstItem(SV_ITEM_ID_LBOXBUTTON));
if(!pItem)