From 399149155cf4f882541848ea53bfa5c9806b23f8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 25 May 2021 19:25:53 +0200 Subject: make SwRect(Rectangle) constructor explicit Change-Id: I715aa9499598c483ccf907f829c9ba3540edf216 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116120 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/ribbar/drawbase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/uibase/ribbar') diff --git a/sw/source/uibase/ribbar/drawbase.cxx b/sw/source/uibase/ribbar/drawbase.cxx index c35563f167dc..e3f6e07538c6 100644 --- a/sw/source/uibase/ribbar/drawbase.cxx +++ b/sw/source/uibase/ribbar/drawbase.cxx @@ -528,7 +528,7 @@ Point SwDrawBase::GetDefaultCenterPos() const SwRect aVisArea(m_pSh->VisArea()); if (comphelper::LibreOfficeKit::isActive()) { - aVisArea = m_pSh->getLOKVisibleArea(); + aVisArea = SwRect(m_pSh->getLOKVisibleArea()); aVisArea.Intersection(SwRect(Point(), aDocSz)); } -- cgit