diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-07 16:52:43 +0000 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2021-05-25 12:12:31 +0200 |
commit | 6ea7ae8a7ab5f440dca9405e666ec34e260cf7ed (patch) | |
tree | 0a649d13b1d00983a7aff237c8e0da36723cf56f /sd | |
parent | 2c36da3a8be7fa1212779ac6ca3e2dff64f7c77b (diff) |
move GetDPIScaleFactor check to ValueSet canvas
Change-Id: I586b3d1167300d914da18af7f32dd8e434bb49c9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112140
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/sidebar/MasterPagesSelector.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/sidebar/MasterPagesSelector.cxx b/sd/source/ui/sidebar/MasterPagesSelector.cxx index 4b09e8247cd2..eaa3b1e62f79 100644 --- a/sd/source/ui/sidebar/MasterPagesSelector.cxx +++ b/sd/source/ui/sidebar/MasterPagesSelector.cxx @@ -76,7 +76,7 @@ MasterPagesSelector::MasterPagesSelector ( LINK(this, MasterPagesSelector, ContextMenuHandler)); mxPreviewValueSet->SetStyle(mxPreviewValueSet->GetStyle() | WB_NO_DIRECTSELECT); - if ( GetDPIScaleFactor() > 1 ) + if (mxPreviewValueSet->GetDrawingArea()->get_ref_device().GetDPIScaleFactor() > 1) mpContainer->SetPreviewSize(MasterPageContainer::LARGE); mxPreviewValueSet->SetPreviewSize(mpContainer->GetPreviewSizePixel()); |