diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-07 16:52:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-03-08 10:00:07 +0100 |
commit | a71bf40191b31780a3bbac2ee2a3a59c99dcf8b8 (patch) | |
tree | 540f112173340d9d4c5f4c9cc8792a67983374a5 /sd | |
parent | bc5a0676fa107bdad6e860d31a874de4eae2d8ba (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 95068a207ec8..bf048f18bebd 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()); |