Kaydet (Commit) a5712755 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl Kaydeden (comit) Michael Meeks

tdf#91495 don't change tree entry height when preview is disabled

Change-Id: Ic707f4407bb3aef5f2a7b9d13a0340c6d9afb3fe
(cherry picked from commit 9f75bad2)
Reviewed-on: https://gerrit.libreoffice.org/17178Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
Tested-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst 6c745168
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment