[Libreoffice-commits] core.git: Branch 'feature/template_manager_improvements2' - sfx2/source
Efe Gürkan YALAMAN
efeyalaman at gmail.com
Fri Aug 8 10:44:55 PDT 2014
sfx2/source/dialog/backingwindow.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 70bff9071a52d02183d54f62d6402e7a4f5d89eb
Author: Efe Gürkan YALAMAN <efeyalaman at gmail.com>
Date: Fri Aug 8 20:42:38 2014 +0300
Fixed the menu button resizing
Menu button size requests are changed to fit with the other buttons.
Change-Id: Ibe7d850f08b37a971f97d0f28c6bffa8e73b0e21
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 7d97dc0..078b140 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -331,8 +331,9 @@ void BackingWindow::setupButton( PushButton* pButton )
void BackingWindow::setupButton( MenuButton* pButton )
{
- Font aFont(pButton->GetControlFont());
- aFont.SetHeight(nButtonsFontSize);
+ Font aFont(pButton->GetSettings().GetStyleSettings().GetPushButtonFont());
+ aFont.SetSize(Size(0, aFont.GetSize().Height() * fMultiplier));
+ aFont.SetWeight(WEIGHT_BOLD);
pButton->SetControlFont(aFont);
pButton->SetControlForeground(aButtonsText);
More information about the Libreoffice-commits
mailing list