summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewdraw.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-25 19:25:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-26 08:42:07 +0200
commit399149155cf4f882541848ea53bfa5c9806b23f8 (patch)
tree7d4beaebdff4d0c725fda27662009c2b2f7b0fe1 /sw/source/uibase/uiview/viewdraw.cxx
parent581f12c0bdfb718379c16bef01d71ee9e45a5b5a (diff)
make SwRect(Rectangle) constructor explicit
Change-Id: I715aa9499598c483ccf907f829c9ba3540edf216 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116120 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uiview/viewdraw.cxx')
-rw-r--r--sw/source/uibase/uiview/viewdraw.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx
index b676999f6448..9d6d07e1deaf 100644
--- a/sw/source/uibase/uiview/viewdraw.cxx
+++ b/sw/source/uibase/uiview/viewdraw.cxx
@@ -161,7 +161,7 @@ void SwView::ExecDraw(SfxRequest& rReq)
{
Size aDocSize( m_pWrtShell->GetDocSize() );
const SwRect& rVisArea = comphelper::LibreOfficeKit::isActive() ?
- m_pWrtShell->getLOKVisibleArea() : m_pWrtShell->VisArea();
+ SwRect(m_pWrtShell->getLOKVisibleArea()) : m_pWrtShell->VisArea();
Point aPos( rVisArea.Center() );
tools::Rectangle aObjRect( pObj->GetLogicRect() );