From bfb7c7be5781246febcffd5fdafd1d74d9dd7bce Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 24 Sep 2019 10:00:01 +0100 Subject: getDrawPreviewOptimalSize can take an OutputDevice arg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifb36166b153858ca7e32974e9b297e583b66c256 Reviewed-on: https://gerrit.libreoffice.org/79444 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sfx2/source/dialog/dialoghelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/dialog/dialoghelper.cxx b/sfx2/source/dialog/dialoghelper.cxx index 0af9600960ea..4c7d63e23e0e 100644 --- a/sfx2/source/dialog/dialoghelper.cxx +++ b/sfx2/source/dialog/dialoghelper.cxx @@ -20,9 +20,9 @@ Size getParagraphPreviewOptimalSize(const OutputDevice& rReference) return rReference.LogicToPixel(Size(68 , 112), MapMode(MapUnit::MapAppFont)); } -Size getDrawPreviewOptimalSize(const vcl::Window *pReference) +Size getDrawPreviewOptimalSize(const OutputDevice& rReference) { - return pReference->LogicToPixel(Size(88, 42), MapMode(MapUnit::MapAppFont)); + return rReference.LogicToPixel(Size(88, 42), MapMode(MapUnit::MapAppFont)); } Size getPreviewStripSize(const OutputDevice& rReference) -- cgit