diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-20 12:37:26 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-23 09:19:06 +0100 |
commit | f9c9f57e6901ce6a55a153962d0852324d9cadcf (patch) | |
tree | 3faea933f2fa974671a7f1141b70bd4fc7127882 /sc/source/ui | |
parent | 355f1199fdd552cfd4fa167b345f37649ae76d80 (diff) |
OutputDevice::LogicInvalidate: clean up sc/sd duplication
Writer is not affected, as there the map mode is disabled and everything
is in twips internally.
Change-Id: I3b5289f82e89be5943a0b14a5167b33132cf78d0
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 630a0c8e2680..cf72fc3aacc8 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -984,18 +984,7 @@ void ScGridWindow::LogicInvalidate(const ::vcl::Region* pRegion) if (!pRegion) sRectangle = "EMPTY"; else - { - Rectangle aRectangle = pRegion->GetBoundRect(); - if (GetMapMode().GetMapUnit() == MAP_100TH_MM) - { - // Conversion to twips is necessary. - aRectangle.Left() = convertMm100ToTwip(aRectangle.Left()); - aRectangle.Top() = convertMm100ToTwip(aRectangle.Top()); - aRectangle.Right() = convertMm100ToTwip(aRectangle.Right()); - aRectangle.Bottom() = convertMm100ToTwip(aRectangle.Bottom()); - } - sRectangle = aRectangle.toString(); - } + sRectangle = pRegion->GetBoundRect().toString(); pViewData->GetDocument()->GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr()); } |