diff options
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 22a80c561b7a..fbb1a9e8379f 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -5829,23 +5829,23 @@ void ScGridWindow::UpdateCursorOverlay() long aCursorWidth = 1 * fScaleFactor; - tools::Rectangle aLeft = tools::Rectangle(aRect); + tools::Rectangle aLeft = aRect; aLeft.Top() -= aCursorWidth; aLeft.Bottom() += aCursorWidth; aLeft.Right() = aLeft.Left(); aLeft.Left() -= aCursorWidth; - tools::Rectangle aRight = tools::Rectangle(aRect); + tools::Rectangle aRight = aRect; aRight.Top() -= aCursorWidth; aRight.Bottom() += aCursorWidth; aRight.Left() = aRight.Right(); aRight.Right() += aCursorWidth; - tools::Rectangle aTop = tools::Rectangle(aRect); + tools::Rectangle aTop = aRect; aTop.Bottom() = aTop.Top(); aTop.Top() -= aCursorWidth; - tools::Rectangle aBottom = tools::Rectangle(aRect); + tools::Rectangle aBottom = aRect; aBottom.Top() = aBottom.Bottom(); aBottom.Bottom() += aCursorWidth; |