summaryrefslogtreecommitdiff
path: root/svtools/source/contnr/treelistbox.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-23 15:43:34 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-24 06:45:07 +0000
commit24ca187b6370ca56c8acd92bc405028dd9deb5f2 (patch)
tree07fa9921bc8f6b101500e152fdad0b18b1d3397b /svtools/source/contnr/treelistbox.cxx
parentdb12f068f849dc0e03d43ee6688ba342e985fa04 (diff)
loplugin:singlevalfields in svtools
Change-Id: I80fe1d4646af2b8d8e6362a25f6cda4b7ac29eab Reviewed-on: https://gerrit.libreoffice.org/26603 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools/source/contnr/treelistbox.cxx')
-rw-r--r--svtools/source/contnr/treelistbox.cxx15
1 files changed, 1 insertions, 14 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 4a4f48f86f2b..0a1e14392937 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -2854,7 +2854,7 @@ void SvTreeListBox::PaintEntry1(SvTreeListEntry& rEntry, long nLine, vcl::Render
bool bSelTab = bool(nFlags & SvLBoxTabFlags::SHOW_SELECTION);
sal_uInt16 nItemType = pItem->GetType();
- if (pViewDataEntry->IsHighlighted() && bSelTab && !pViewDataEntry->IsCursored())
+ if (pViewDataEntry->IsHighlighted() && bSelTab)
{
Color aNewWallColor = rSettings.GetHighlightColor();
if (!bInUse || nItemType != SV_ITEM_ID_LBOXCONTEXTBMP)
@@ -2961,19 +2961,6 @@ void SvTreeListBox::PaintEntry1(SvTreeListEntry& rEntry, long nLine, vcl::Render
nCurItem++;
nCurTab++;
}
- if (pViewDataEntry->IsCursored() && !HasFocus())
- {
- // cursor emphasis
- rRenderContext.SetFillColor();
- Color aOldLineColor = rRenderContext.GetLineColor();
- rRenderContext.SetLineColor(Color(COL_BLACK));
- aRect = GetFocusRect(&rEntry, nLine);
- aRect.Top()++;
- aRect.Bottom()--;
- rRenderContext.DrawRect(aRect);
- rRenderContext.SetLineColor(aOldLineColor);
- rRenderContext.SetFillColor(aBackupColor);
- }
if (bCurFontIsSel)
{