[haiku-commits] haiku: hrev44467 - src/kits/interface

  • From: leavengood@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 4 Aug 2012 06:27:03 +0200 (CEST)

hrev44467 adds 1 changeset to branch 'master'
old head: 4ffc27fcc1acaca0d1ff69be54c048920d2e902e
new head: bab4f5ad7d6900b38b37950a88895988acacc98d

----------------------------------------------------------------------------

bab4f5a: Use the parent menu's font when truncating labels.
  
  Fixes the other bug uncovered by #8829, but my other fix was valid too.

                                  [ Ryan Leavengood <leavengood@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44467
Commit:      bab4f5ad7d6900b38b37950a88895988acacc98d
URL:         http://cgit.haiku-os.org/haiku/commit/?id=bab4f5a
Author:      Ryan Leavengood <leavengood@xxxxxxxxx>
Date:        Sat Aug  4 04:24:56 2012 UTC

Ticket:      https://dev.haiku-os.org/ticket/8829

----------------------------------------------------------------------------

1 file changed, 2 insertions(+)
src/kits/interface/MenuItem.cpp |    2 ++

----------------------------------------------------------------------------

diff --git a/src/kits/interface/MenuItem.cpp b/src/kits/interface/MenuItem.cpp
index c1ed667..98f5e00 100644
--- a/src/kits/interface/MenuItem.cpp
+++ b/src/kits/interface/MenuItem.cpp
@@ -379,6 +379,8 @@ void
 BMenuItem::TruncateLabel(float maxWidth, char *newLabel)
 {
        BFont font;
+       fSuper->GetFont(&font);
+
        BString string(fLabel);
 
        font.TruncateString(&string, B_TRUNCATE_MIDDLE, maxWidth);


Other related posts:

  • » [haiku-commits] haiku: hrev44467 - src/kits/interface - leavengood