summaryrefslogtreecommitdiff
path: root/vcl/source/window/paint.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/paint.cxx')
-rw-r--r--vcl/source/window/paint.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index bb44f1bede5c..d1256289168b 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -353,10 +353,10 @@ void RenderTools::DrawSelectionBackground(vcl::RenderContext& rRenderContext, vc
tools::Rectangle aRect(rRect);
if (bDrawExtBorderOnly)
{
- aRect.Left() -= 1;
- aRect.Top() -= 1;
- aRect.Right() += 1;
- aRect.Bottom() += 1;
+ aRect.AdjustLeft( -1 );
+ aRect.AdjustTop( -1 );
+ aRect.AdjustRight(1 );
+ aRect.AdjustBottom(1 );
}
rRenderContext.Push(PushFlags::FILLCOLOR | PushFlags::LINECOLOR);