diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-20 15:48:04 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-03-23 09:19:07 +0100 |
commit | 35cf00e20ad5826f715f5d5bbc48d486228774ca (patch) | |
tree | f991ea468d892a5a7e1ae87c6818eacd1a55cfe9 /sc | |
parent | 97ea96fed5a189e59982f97f57119938448296e2 (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 'sc')
-rw-r--r-- | sc/source/ui/inc/gridwin.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx index ac158bfec473..36a7e5c2ef87 100644 --- a/sc/source/ui/inc/gridwin.hxx +++ b/sc/source/ui/inc/gridwin.hxx @@ -322,7 +322,7 @@ public: long nTileWidth, long nTileHeight ); /// @see OutputDevice::LogicInvalidate(). - void LogicInvalidate(const ::vcl::Region* pRegion) SAL_OVERRIDE; + void LogicInvalidate(const Rectangle* pRectangle) SAL_OVERRIDE; /// Same as MouseButtonDown(), but coordinates are in logic unit. void LogicMouseButtonDown(const MouseEvent& rMouseEvent); diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index cf72fc3aacc8..cdef76d25c98 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -978,13 +978,13 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice, pSdrPageView->RemovePaintWindowFromPageView(aTemporaryPaintWindow); } -void ScGridWindow::LogicInvalidate(const ::vcl::Region* pRegion) +void ScGridWindow::LogicInvalidate(const Rectangle* pRectangle) { OString sRectangle; - if (!pRegion) + if (!pRectangle) sRectangle = "EMPTY"; else - sRectangle = pRegion->GetBoundRect().toString(); + sRectangle = pRectangle->toString(); pViewData->GetDocument()->GetDrawLayer()->libreOfficeKitCallback(LOK_CALLBACK_INVALIDATE_TILES, sRectangle.getStr()); } |