diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-18 12:14:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-18 13:02:39 +0200 |
commit | b71ff0db856c7fbc3505f2663aee568fa47fc067 (patch) | |
tree | 23dc10b5587ca72ff980af112156b809c50bb0b4 /svtools/source/contnr/svimpbox.cxx | |
parent | fb0bf56948d7f968717f4a3f53ce56e320cd5f36 (diff) |
convert ExtendedWinBits to a single bool flag
Change-Id: I2ff15a7f485ffdfb78eaabd529d19065faeb4c53
Reviewed-on: https://gerrit.libreoffice.org/41277
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source/contnr/svimpbox.cxx')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index b0e3132596ff..de8a49889e5c 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -55,7 +55,7 @@ SvImpLBox::SvImpLBox( SvTreeListBox* pLBView, SvTreeList* pLBTree, WinBits nWinS , m_pStringSorter(nullptr) , aVerSBar(VclPtr<ScrollBar>::Create(pLBView, WB_DRAG | WB_VSCROLL)) , aOutputSize(0, 0) - , nExtendedWinBits(0) + , mbNoAutoCurEntry(false) , aSelEng(pLBView, nullptr) , nNextVerVisSize(0) { @@ -244,9 +244,9 @@ void SvImpLBox::SetStyle( WinBits i_nWinStyle ) aSelEng.AddAlways( true ); } -void SvImpLBox::SetExtendedWindowBits( ExtendedWinBits _nBits ) +void SvImpLBox::SetNoAutoCurEntry( bool b ) { - nExtendedWinBits = _nBits; + mbNoAutoCurEntry = b; } // don't touch the model any more @@ -924,7 +924,7 @@ void SvImpLBox::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle rRenderContext.SetClipRegion(aClipRegion); - if (!pCursor && ((nExtendedWinBits & EWB_NO_AUTO_CURENTRY) == 0)) + if (!pCursor && !mbNoAutoCurEntry) { // do not select if multiselection or explicit set bool bNotSelect = (aSelEng.GetSelectionMode() == SelectionMode::Multiple ) || ((m_nStyle & WB_NOINITIALSELECTION) == WB_NOINITIALSELECTION); |