vcl/source/control/imivctl1.cxx | 40 ---------------------------------------- 1 file changed, 40 deletions(-)
New commits: commit e554da3b298a45abe0532a67b478a90a3bf34fb1 Author: Christopher Sherlock <chris.sherloc...@gmail.com> AuthorDate: Mon Dec 23 17:53:46 2024 +1100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Mon Feb 10 08:19:23 2025 +0100 vcl: OV_DRAWGRID is not ever set anywhere Change-Id: I239cf124ebdccc0b9e811e403f763d0c45b640a9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179207 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/vcl/source/control/imivctl1.cxx b/vcl/source/control/imivctl1.cxx index 36e3bacc9c88..3da69ebbedd0 100644 --- a/vcl/source/control/imivctl1.cxx +++ b/vcl/source/control/imivctl1.cxx @@ -336,46 +336,6 @@ void SvxIconChoiceCtrl_Impl::ImpArrange() void SvxIconChoiceCtrl_Impl::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect) { -#if defined(OV_DRAWGRID) - Color aOldColor (rRenderContext.GetLineColor()); - Color aCOL_BLACK); - rRenderContext.SetLineColor( aColor ); - Point aOffs(rRenderContext.GetMapMode().GetOrigin()); - Size aXSize(GetOutputSizePixel()); - { - Point aStart(LROFFS_WINBORDER, 0); - Point aEnd(LROFFS_WINBORDER, aXSize.Height()); - aStart -= aOffs; - aEnd -= aOffs; - rRenderContext.DrawLine(aStart, aEnd); - } - { - Point aStart(0, TBOFFS_WINBORDER); - Point aEnd(aXSize.Width(), TBOFFS_WINBORDER); - aStart -= aOffs; - aEnd -= aOffs; - rRenderContext.DrawLine(aStart, aEnd); - } - - for (tools::Long nDX = nGridDX; nDX <= aXSize.Width(); nDX += nGridDX) - { - Point aStart( nDX+LROFFS_WINBORDER, 0 ); - Point aEnd( nDX+LROFFS_WINBORDER, aXSize.Height()); - aStart -= aOffs; - aEnd -= aOffs; - rRenderContext.DrawLine(aStart, aEnd); - } - for (tools::Long nDY = nGridDY; nDY <= aXSize.Height(); nDY += nGridDY) - { - Point aStart(0, nDY + TBOFFS_WINBORDER); - Point aEnd(aXSize.Width(), nDY + TBOFFS_WINBORDER); - aStart -= aOffs; - aEnd -= aOffs; - rRenderContext.DrawLine(aStart, aEnd); - } - rRenderContext.SetLineColor(aOldColor); -#endif - if (!maEntries.size()) return; if (!pCursor)