diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-22 17:43:10 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-23 11:58:59 +0900 |
commit | 5d23d11ca9f571c1e19506b360eae265d43b2ad2 (patch) | |
tree | 06a9024d8451cb3363527786961f8fb4dcbb1845 | |
parent | 0bdb8eda1272596301391d9620ccec2866642975 (diff) |
make "Styles & Formatting" preview HiDPI aware
Change-Id: I6f167bc8310b75dbe8bddbfe331853dc6d17c9fc
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index c0c98b8cbc0f..8de5c55b9ab5 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -125,7 +125,7 @@ void StyleLBoxString::InitViewData(SvTreeListBox* pView, SvTreeListEntry* pEntry { return; } - mpStylePreviewRenderer.reset(pStyleManager->CreateStylePreviewRenderer(*pView, GetText(), meStyleFamily)); + mpStylePreviewRenderer.reset(pStyleManager->CreateStylePreviewRenderer(*pView, GetText(), meStyleFamily, 32 * pView->GetDPIScaleFactor())); if (!mpStylePreviewRenderer) { @@ -326,7 +326,7 @@ SfxActionListBox::SfxActionListBox(SfxCommonTemplateDialog_Impl* pParent, WinBit void SfxActionListBox::Recalc() { - SetEntryHeight(32); + SetEntryHeight(32 * GetDPIScaleFactor()); RecalcViewData(); } @@ -516,7 +516,7 @@ StyleTreeListBox_Impl::StyleTreeListBox_Impl(SfxCommonTemplateDialog_Impl* pPare void StyleTreeListBox_Impl::Recalc() { - SetEntryHeight(32); + SetEntryHeight(32 * GetDPIScaleFactor()); RecalcViewData(); } |