diff options
author | Henry Castro <hcastro@collabora.com> | 2015-03-20 12:22:09 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-23 09:19:06 +0100 |
commit | 355f1199fdd552cfd4fa167b345f37649ae76d80 (patch) | |
tree | 0e897e4ae4124b61b57361b8ca35774cf9ba8a3c /sc/source/ui/view | |
parent | 2730944192b84c8c0fc384c773f867e765790b58 (diff) |
sc tiled rendering: add missing mm100 -> twips conversion
Change-Id: Id0b1d88d0852e9333538ca9cecf4605c06440494
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 63249332d5f8..630a0c8e2680 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -984,7 +984,19 @@ void ScGridWindow::LogicInvalidate(const ::vcl::Region* pRegion) if (!pRegion) sRectangle = "EMPTY"; else - sRectangle = pRegion->GetBoundRect().toString(); + { + 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(); + } + pViewData->GetDocument()->GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr()); } |