diff options
Diffstat (limited to 'sd/source/ui/view/sdwindow.cxx')
-rw-r--r-- | sd/source/ui/view/sdwindow.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index 118f1545b186..a6ce2c02b2b3 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -1009,18 +1009,19 @@ void Window::LogicInvalidate(const ::tools::Rectangle* pRectangle) if (!pDrawViewShell || pDrawViewShell->IsInSwitchPage()) return; - OString sRectangle; + ::tools::Rectangle aRectangle; + ::tools::Rectangle* pResultRectangle; if (!pRectangle) - sRectangle = "EMPTY"; + pResultRectangle = nullptr; else { - ::tools::Rectangle aRectangle(*pRectangle); + aRectangle = *pRectangle; if (GetMapMode().GetMapUnit() == MapUnit::Map100thMM) aRectangle = OutputDevice::LogicToLogic(aRectangle, MapMode(MapUnit::Map100thMM), MapMode(MapUnit::MapTwip)); - sRectangle = aRectangle.toString(); + pResultRectangle = &aRectangle; } SfxViewShell& rSfxViewShell = pDrawViewShell->GetViewShellBase(); - SfxLokHelper::notifyInvalidation(&rSfxViewShell, sRectangle); + SfxLokHelper::notifyInvalidation(&rSfxViewShell, pResultRectangle); } void Window::LogicMouseButtonDown(const MouseEvent& rMouseEvent) |