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 /sd | |
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 'sd')
-rw-r--r-- | sd/source/ui/view/sdwindow.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index 8a79750c3173..727eca96c6ec 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -996,18 +996,7 @@ void Window::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(); mpViewShell->GetDoc()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr()); } |