From 5d8ac801c00fbf1dc16ee8dbfe8167baf7ea0ce0 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 18 May 2021 17:05:14 +0100 Subject: SetPhysFont always dereferences its OutputDevice* arg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit which is also the case for ChgPhysFont and GetTextSize Change-Id: I7e6a1a7eaa77646c53506a73d8946f8df7593e72 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115768 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- svx/source/styles/CommonStylePreviewRenderer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx/source/styles') diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx b/svx/source/styles/CommonStylePreviewRenderer.cxx index 5ad1b8769ec7..65690bed792b 100644 --- a/svx/source/styles/CommonStylePreviewRenderer.cxx +++ b/svx/source/styles/CommonStylePreviewRenderer.cxx @@ -181,7 +181,7 @@ bool CommonStylePreviewRenderer::recalculate() Size CommonStylePreviewRenderer::getRenderSize() const { assert(m_pFont); - Size aPixelSize = m_pFont->GetTextSize(&mrOutputDev, maStyleName); + Size aPixelSize = m_pFont->GetTextSize(mrOutputDev, maStyleName); if (aPixelSize.Height() > mnMaxHeight) aPixelSize.setHeight( mnMaxHeight ); -- cgit