summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-03-20 15:48:04 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-03-23 09:19:07 +0100
commit35cf00e20ad5826f715f5d5bbc48d486228774ca (patch)
treef991ea468d892a5a7e1ae87c6818eacd1a55cfe9 /sd
parent97ea96fed5a189e59982f97f57119938448296e2 (diff)
OutputDevice::LogicInvalidate: take a Rectangle
At the end this gets exported in the LOK API as a rectangle anyway, so better to convert the vcl::Regions into a Rectangle, and not the other way around. Change-Id: I81fede6e30af112d17bb74328801915d90474863
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/inc/Window.hxx2
-rw-r--r--sd/source/ui/view/sdwindow.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/inc/Window.hxx b/sd/source/ui/inc/Window.hxx
index 9055037e2e4c..be2bb1af4e11 100644
--- a/sd/source/ui/inc/Window.hxx
+++ b/sd/source/ui/inc/Window.hxx
@@ -193,7 +193,7 @@ protected:
OUString GetSurroundingText() const SAL_OVERRIDE;
Selection GetSurroundingTextSelection() const SAL_OVERRIDE;
/// @see OutputDevice::LogicInvalidate().
- void LogicInvalidate(const ::vcl::Region* pRegion) SAL_OVERRIDE;
+ void LogicInvalidate(const Rectangle* pRectangle) SAL_OVERRIDE;
};
} // end of namespace sd
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index 727eca96c6ec..20e3086feedb 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -990,13 +990,13 @@ Selection Window::GetSurroundingTextSelection() const
}
}
-void Window::LogicInvalidate(const ::vcl::Region* pRegion)
+void Window::LogicInvalidate(const Rectangle* pRectangle)
{
OString sRectangle;
- if (!pRegion)
+ if (!pRectangle)
sRectangle = "EMPTY";
else
- sRectangle = pRegion->GetBoundRect().toString();
+ sRectangle = pRectangle->toString();
mpViewShell->GetDoc()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr());
}