diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-07 15:20:14 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-09 09:53:48 +0900 |
commit | 1b0c1943788f6083b27a1e5a4d6d76373f08459b (patch) | |
tree | 0afd4eae2639eeffd009b653259460d2b2bfe3f7 /svtools | |
parent | 7e1d93056be5d43a6307dd75744cd006144f5cb8 (diff) |
some cleanup in treelistbox
Change-Id: I24720adfc7c1c38ba7d804baef3c1e01e01d64cb
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/treelistbox.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index bc58e2d42792..1e31187cfd1b 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -961,8 +961,6 @@ void SvTreeListBox::InitViewData( SvViewDataEntry* pData, SvTreeListEntry* pEntr } } - - void SvTreeListBox::EnableSelectionAsDropTarget( bool bEnable, bool bWithChildren ) { sal_uInt16 nRefDepth; @@ -2566,13 +2564,11 @@ void SvTreeListBox::Paint( const Rectangle& rRect ) if( HasFocus() ) { long tempHeight = GetTextHeight(); - Rectangle tempRect( - Point(0,0),Size(GetSizePixel().Width(),tempHeight) - ); + Rectangle tempRect(Point(0, 0), Size(GetSizePixel().Width(), tempHeight)); ShowFocus(tempRect); } - - else{ + else + { HideFocus(); } } |