diff options
-rw-r--r-- | vcl/inc/svimpbox.hxx | 7 | ||||
-rw-r--r-- | vcl/source/treelist/treelistbox.cxx | 16 |
2 files changed, 2 insertions, 21 deletions
diff --git a/vcl/inc/svimpbox.hxx b/vcl/inc/svimpbox.hxx index 9649708ddbfc..994a25f095ee 100644 --- a/vcl/inc/svimpbox.hxx +++ b/vcl/inc/svimpbox.hxx @@ -107,7 +107,6 @@ private: { NodeExpanded = 0, // node is expanded ( usually a bitmap showing a minus ) NodeCollapsed, // node is collapsed ( usually a bitmap showing a plus ) - NodeDontKnow, // don't know the node state EntryDefExpanded, // default for expanded entries EntryDefCollapsed, // default for collapsed entries LAST = EntryDefCollapsed @@ -280,7 +279,6 @@ public: inline const Image& GetExpandedNodeBmp( ); inline const Image& GetCollapsedNodeBmp( ); - inline const Image& GetDontKnowNodeBmp( ); inline void SetDefaultEntryExpBmp( const Image& _rImg ); inline void SetDefaultEntryColBmp( const Image& _rImg ); @@ -338,11 +336,6 @@ inline void SvImpLBox::SetCollapsedNodeBmp( const Image& rImg ) SetNodeBmpWidth( rImg ); } -inline const Image& SvImpLBox::GetDontKnowNodeBmp( ) -{ - return implGetImageLocation( ImageType::NodeDontKnow ); -} - inline const Image& SvImpLBox::GetExpandedNodeBmp( ) { return implGetImageLocation( ImageType::NodeExpanded ); diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index 51c9d1f4c57c..3e231d257f93 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -2801,18 +2801,7 @@ void SvTreeListBox::PaintEntry1(SvTreeListEntry& rEntry, tools::Long nLine, vcl: if (IsExpanded(&rEntry)) pImg = &pImpl->GetExpandedNodeBmp(); else - { - if ((!rEntry.HasChildren()) && rEntry.HasChildrenOnDemand() && - (!(rEntry.GetFlags() & SvTLEntryFlags::HAD_CHILDREN)) && - pImpl->GetDontKnowNodeBmp().GetSizePixel().Width()) - { - pImg = &pImpl->GetDontKnowNodeBmp( ); - } - else - { - pImg = &pImpl->GetCollapsedNodeBmp( ); - } - } + pImg = &pImpl->GetCollapsedNodeBmp(); aPos.AdjustY((nTempEntryHeight - pImg->GetSizePixel().Height()) / 2 ); DrawImageFlags nStyle = DrawImageFlags::NONE; @@ -2835,8 +2824,7 @@ void SvTreeListBox::PaintEntry1(SvTreeListEntry& rEntry, tools::Long nLine, vcl: else { if ((!rEntry.HasChildren()) && rEntry.HasChildrenOnDemand() && - (!(rEntry.GetFlags() & SvTLEntryFlags::HAD_CHILDREN)) && - pImpl->GetDontKnowNodeBmp().GetSizePixel().Width()) + (!(rEntry.GetFlags() & SvTLEntryFlags::HAD_CHILDREN))) { aControlValue.setTristateVal( ButtonValue::DontKnow ); //don't know } |