diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-23 14:54:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-26 07:26:54 +0100 |
commit | 84d9785a04a1d4929505ef1d7958e0420eec43b6 (patch) | |
tree | 6c95e3f234e1efe21d762d2bf2ba5b9e26a3aea4 /svtools | |
parent | 761546e088dcccf3aa66c3f5c4853f110b93770f (diff) |
remove unused DrawFlags enum values
Change-Id: I3f313dfa085612d805ea54352793a3fb0356b986
Reviewed-on: https://gerrit.libreoffice.org/63970
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index 2674b5488694..7944ab7bb565 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -633,8 +633,6 @@ void BrowseBox::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle void BrowseBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, DrawFlags nFlags ) { - bool bDrawSelection = !(nFlags & DrawFlags::NoSelection); - // we need pixel coordinates Size aRealSize = pDev->LogicToPixel(rSize); Point aRealPos = pDev->LogicToPixel(rPos); @@ -745,7 +743,7 @@ void BrowseBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, pDev->SetClipRegion( pDev->PixelToLogic( aRegion ) ); // do we have to paint the background - bool bBackground = !(nFlags & DrawFlags::NoBackground) && pDataWin->IsControlBackground(); + bool bBackground = pDataWin->IsControlBackground(); if ( bBackground ) { tools::Rectangle aRect( aRealPos, aRealSize ); @@ -753,7 +751,7 @@ void BrowseBox::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, pDev->DrawRect( aRect ); } - ImplPaintData( *pDev, tools::Rectangle( aRealPos, aRealSize ), true, bDrawSelection ); + ImplPaintData( *pDev, tools::Rectangle( aRealPos, aRealSize ), true, /*bDrawSelection*/true ); // restore the column widths/data row height nDataRowHeight = nOriginalHeight; |