[Libreoffice-commits] core.git: sd/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Mar 8 09:00:53 UTC 2021
sd/source/ui/sidebar/MasterPagesSelector.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a71bf40191b31780a3bbac2ee2a3a59c99dcf8b8
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Mar 7 16:52:43 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Mar 8 10:00:07 2021 +0100
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 at redhat.com>
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());
More information about the Libreoffice-commits
mailing list