sfx2/source/dialog/backingwindow.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit 70bff9071a52d02183d54f62d6402e7a4f5d89eb Author: Efe Gürkan YALAMAN <[email protected]> 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);
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
