summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-07-18 17:18:25 +0900
committerMichael Meeks <michael.meeks@collabora.com>2015-07-20 09:07:47 +0000
commita5712755e6af5318d264d7e2f5efb28e747b110f (patch)
tree3a3a3c8609f1012353305aa54f779444ed44317c
parent6c7451681a5c5408a73fc25595c228f7922fbd29 (diff)
tdf#91495 don't change tree entry height when preview is disabled
Change-Id: Ic707f4407bb3aef5f2a7b9d13a0340c6d9afb3fe (cherry picked from commit 9f75bad228ca1f410b7a450084b02ad13745110e) Reviewed-on: https://gerrit.libreoffice.org/17178 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
-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 d99a5e41c142..ad731633772d 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -330,8 +330,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()