diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 10:00:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-24 13:28:13 +0200 |
commit | bfb7c7be5781246febcffd5fdafd1d74d9dd7bce (patch) | |
tree | ab4e9f27910c6c08883e2839b104d0005f60ce59 /sfx2 | |
parent | 52a626ffb48d2b04a355b31063ca58198e8c2e11 (diff) |
getDrawPreviewOptimalSize can take an OutputDevice arg
Change-Id: Ifb36166b153858ca7e32974e9b297e583b66c256
Reviewed-on: https://gerrit.libreoffice.org/79444
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/dialoghelper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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) |