summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-07-18 17:18:25 +0900
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2015-07-22 06:05:34 +0000
commit8e957ae85f3cd9a6805296702bae41d30e6f0cef (patch)
treea8e7d2fa558eee9c12219d33942d072dda7124a5
parent5e42fa59ff1e4f46c05b1c438dd3757dbb7a14d6 (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/17180 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Eike Rathke <erack@redhat.com> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.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()