From a14a5eff0dccb13ba6fc050fd8f7e00b08360f07 Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Wed, 14 Apr 2004 14:02:41 +0000
Subject: fixed title problem, patch from Mathias Gumz

---
 src/FbTk/Menu.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index de62627..ab4fd19 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -22,7 +22,7 @@
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE.
 
-// $Id: Menu.cc,v 1.56 2004/02/27 14:21:13 fluxgen Exp $
+// $Id: Menu.cc,v 1.57 2004/04/14 14:02:41 fluxgen Exp $
 
 //use GNU extensions
 #ifndef	 _GNU_SOURCE
@@ -363,7 +363,8 @@ void Menu::update(int active_index) {
     menu.title_h = m_theme.titleFont().height() + menu.bevel_w*2;
 
     if (title_vis) {
-        menu.item_w = m_theme.frameFont().textWidth(menu.label.c_str(), menu.label.size());
+        menu.item_w = m_theme.titleFont().textWidth(menu.label.c_str(),
+                                                    menu.label.size());
 		
         menu.item_w += (menu.bevel_w * 2);
     }	else
-- 
cgit v0.11.2