summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-07-18 17:18:25 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-07-18 17:20:43 +0900
commit9f75bad228ca1f410b7a450084b02ad13745110e (patch)
tree47e5c88a79e6ac289a141591fb32c2e78c6977d7
parentc84dd5135a785204f78945f32eaa4d8dc7d27c9f (diff)
tdf#91495 don't change tree entry height when preview is disabled
Change-Id: Ic707f4407bb3aef5f2a7b9d13a0340c6d9afb3fe
-rw-r--r--sfx2/source/dialog/templdlg.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index ab25ccdae6f3..c0d53ad9a26c 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -326,8 +326,11 @@ SfxActionListBox::SfxActionListBox(SfxCommonTemplateDialog_Impl* pParent, WinBit
void SfxActionListBox::Recalc()
{
- SetEntryHeight(32 * GetDPIScaleFactor());
- RecalcViewData();
+ if (officecfg::Office::Common::StylesAndFormatting::Preview::get())
+ {
+ SetEntryHeight(32 * GetDPIScaleFactor());
+ RecalcViewData();
+ }
}
PopupMenu* SfxActionListBox::CreateContextMenu()